bundesdata_web_app/app/Dockerfile
2019-09-06 12:34:32 +02:00

27 lines
603 B
Docker
Executable File

# pull official base image
FROM python:3.7.2
# set environment varibles
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
# set work directory
WORKDIR /usr/src/app
# install dependencies
RUN pip install --upgrade pip
RUN pip install pipenv
COPY ./Pipfile /usr/src/app/Pipfile
RUN pipenv install --skip-lock --system --dev
# copy project
COPY . /usr/src/app/
# add wait for it
RUN git clone https://github.com/vishnubob/wait-for-it.git /wait-for-it
RUN chmod a+x /wait-for-it/wait-for-it.sh
# add entry point
COPY ./django-entrypoint.sh /django-entrypoint.sh
ENTRYPOINT ["docker-entrypoint.sh"]