This repository has been archived on 2025-12-28. You can view files and clone it, but cannot push or open issues or pull requests.
simple-blog-api/Dockerfile
2021-06-02 18:17:11 +09:30

18 lines
276 B
Docker

FROM python:3.8
RUN pip3 install pipenv gunicorn
ENV PROJECT_DIR /usr/src/simpleblogapi
WORKDIR ${PROJECT_DIR}
COPY Pipfile .
COPY Pipfile.lock .
COPY . .
RUN pipenv install --deploy --ignore-pipfile
EXPOSE 5400
CMD ["gunicorn", "-c", "gunicorn_config.py", "wsgi:api"]