Skip to content

Commit b77f4fb

Browse files
committed
init commit
0 parents  commit b77f4fb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+5237
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
**/**/node_modules/

cms/Dockerfile

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Use an official Python runtime as a parent image
2+
FROM python:3.7
3+
LABEL maintainer="[email protected]"
4+
5+
# Set environment varibles
6+
ENV PYTHONUNBUFFERED 1
7+
ENV DJANGO_ENV dev
8+
9+
COPY ./requirements.txt /code/cms/requirements.txt
10+
RUN pip install --upgrade pip
11+
# Install any needed packages specified in requirements.txt
12+
RUN pip install -r /code/cms/requirements.txt
13+
RUN pip install gunicorn
14+
15+
# Copy the current directory contents into the container at /code/
16+
COPY . /code/cms
17+
# Set the working directory to /code/
18+
WORKDIR /code/cms
19+
20+
RUN python manage.py migrate
21+
22+
RUN useradd wagtail
23+
RUN chown -R wagtail /code/cms
24+
USER wagtail
25+
26+
EXPOSE 8000
27+
CMD exec gunicorn cms.wsgi:application --bind 0.0.0.0:8000 --workers 3

cms/cms/__init__.py

Whitespace-only changes.
116 Bytes
Binary file not shown.
847 Bytes
Binary file not shown.
511 Bytes
Binary file not shown.

cms/cms/settings/__init__.py

Whitespace-only changes.
125 Bytes
Binary file not shown.
3.12 KB
Binary file not shown.
384 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)