-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (22 loc) · 854 Bytes
/
Dockerfile
File metadata and controls
29 lines (22 loc) · 854 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Start with a base Node.js 9 image
FROM python:3-alpine
# Update package lists
RUN apk update
# Set the timezone to Europe/London
RUN apk add --no-cache tzdata && \
cp /usr/share/zoneinfo/Europe/London /etc/localtime && \
echo "Europe/London" > /etc/timezone
# Get required PostgreSQL Libraries
RUN apk add postgresql-libs && \
apk add --virtual .build-deps gcc musl-dev postgresql-dev
# Get bash installed
RUN apk add bash
# Copy everything to the image
COPY . .
# Install Pipenv and gets requirements installed
RUN pip3 install pipenv
ENV LC_ALL C.UTF-8
ENV LANG C.UTF-8
RUN pipenv install --system
# Run migrations and start channels layer and backend worker in parallel
CMD /bin/bash -c "python3 server/manage.py migrate && gunicorn --pythonpath server server.wsgi --bind 0.0.0.0:80 --log-level=info"