easyctf-iv-platform/server/Dockerfile

14 lines
290 B
Text
Raw Permalink Normal View History

2020-11-26 04:46:22 +00:00
FROM python:3.8-alpine3.11
RUN apk add build-base musl-dev libffi-dev mariadb-dev jpeg-dev
COPY Pipfile /
COPY Pipfile.lock /
RUN pip install pipenv
RUN pipenv install --deploy --system
COPY . /app
WORKDIR /app
EXPOSE 8000
ENTRYPOINT ["pipenv", "run", "/app/entrypoint.sh", "runserver"]