Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
25 lines (19 sloc)
544 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# pull official base image | |
FROM python:buster | |
# set work directory | |
WORKDIR /usr/src/app | |
# set environment variables | |
ENV PYTHONDONTWRITEBYTECODE 1 | |
ENV PYTHONUNBUFFERED 1 | |
RUN apt-get update && \ | |
apt-get install -y \ | |
netcat | |
# install dependencies | |
RUN pip install --upgrade pip | |
COPY ./requirements.txt /usr/src/app/requirements.txt | |
RUN pip install -r requirements.txt | |
# copy project | |
COPY . /usr/src/app/ | |
RUN mkdir -p /usr/src/app/storage/media/ && \ | |
mkdir -p /usr/src/app/storage/static/ | |
ENTRYPOINT ["/usr/src/app/entrypoint.sh"] |