workout/Dockerfile

16 lines
268 B
Docker
Raw Normal View History

2018-03-04 10:42:09 +01:00
FROM python:3.6
2018-03-04 10:15:42 +01:00
WORKDIR /app
EXPOSE 8000
VOLUME /app/staticfiles
ENV DATABASE_URL postgres://postgresql:postgresql@db:5432/workout
RUN pip3 install pipenv
COPY Pipfile Pipfile.lock ./
RUN pipenv install
COPY . ./
RUN chmod +x bash/run-prod.sh
CMD bash/run-prod.sh