From 204a7e2fc74a2d88d6cfb7a6830e6b4a62dd8b1b Mon Sep 17 00:00:00 2001 From: kienan Date: Fri, 24 Apr 2020 16:40:22 -0400 Subject: [PATCH] Fix docker file --- Dockerfile | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8552aeb..691f022 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,17 @@ FROM debian:buster RUN apt-get update && apt-get install -y \ - pipenv -RUN mkdir /venv -RUN mkdir /src -VOLUME /src - - -WORKDIR /venv + pipenv virtualenv +RUN apt-get install -y wamerican +COPY Pipfile /app/ +COPY Pipfile.lock /app/ +COPY negotiation.py /app/ +COPY static /app/static +COPY templates /app/templates +WORKDIR /app ENV PIPENV_VENV_IN_PROJECT="enabled" -COPY Pipfile . -COPY Pipfile.lock . -RUN pipenv sync \ No newline at end of file +ENV APP_BINDADDRESS=0.0.0.0 +RUN LANG=en_US.UTF-8 pipenv sync +ENTRYPOINT ["/usr/bin/pipenv", "run", "./negotiation.py"] + +# to build: docker build -t redmarkets +# to run: docker run -p 5000:5000 redmarkets:latest