forked from Jackiebibili/ticket_tracker_api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (22 loc) · 633 Bytes
/
Dockerfile
File metadata and controls
27 lines (22 loc) · 633 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
FROM python:3.9-alpine
ARG DJANGO_ENV
ENV DJANGO_ENV=${DJANGO_ENV}
# PIPENV_DOTENV_LOCATION=config/.env
# Creating folders, and files for a project:
COPY . /code
WORKDIR /code
RUN apk update
RUN apk add --no-cache \
build-base \
g++ \
cairo-dev \
pango-dev \
nodejs \
npm
# js install
RUN npm run build --prefix /code/apps/ticketscraping/js
# python install
RUN pip install pipenv
RUN pipenv install $(test "$DJANGO_ENV" == production || echo "--dev") --deploy --system --ignore-pipfile
# start the server
CMD ["gunicorn", "tmtracker.wsgi:application", "-b", "0.0.0.0:8080", "--log-file=/log/message.log"]