Fix docker file
This commit is contained in:
parent
624eaf826c
commit
204a7e2fc7
24
Dockerfile
24
Dockerfile
|
@ -1,13 +1,17 @@
|
||||||
FROM debian:buster
|
FROM debian:buster
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
pipenv
|
pipenv virtualenv
|
||||||
RUN mkdir /venv
|
RUN apt-get install -y wamerican
|
||||||
RUN mkdir /src
|
COPY Pipfile /app/
|
||||||
VOLUME /src
|
COPY Pipfile.lock /app/
|
||||||
|
COPY negotiation.py /app/
|
||||||
|
COPY static /app/static
|
||||||
WORKDIR /venv
|
COPY templates /app/templates
|
||||||
|
WORKDIR /app
|
||||||
ENV PIPENV_VENV_IN_PROJECT="enabled"
|
ENV PIPENV_VENV_IN_PROJECT="enabled"
|
||||||
COPY Pipfile .
|
ENV APP_BINDADDRESS=0.0.0.0
|
||||||
COPY Pipfile.lock .
|
RUN LANG=en_US.UTF-8 pipenv sync
|
||||||
RUN pipenv sync
|
ENTRYPOINT ["/usr/bin/pipenv", "run", "./negotiation.py"]
|
||||||
|
|
||||||
|
# to build: docker build -t redmarkets
|
||||||
|
# to run: docker run -p 5000:5000 redmarkets:latest
|
||||||
|
|
Loading…
Reference in New Issue