Copy requirements.txt at the beginning of dockerfile

parent 9cad9d7a
FROM jfloff/alpine-python:3.7-slim FROM jfloff/alpine-python:3.7-slim
RUN mkdir bits
COPY requirements.txt /bits/requirements.txt
WORKDIR /bits
RUN apk -U add python3 py3-pip python3-dev py3-cffi alpine-sdk \ RUN apk -U add python3 py3-pip python3-dev py3-cffi alpine-sdk \
mariadb-connector-c-dev postgresql-dev && \ mariadb-connector-c-dev postgresql-dev && \
pip3 install --upgrade pip && \ pip3 install --upgrade pip && \
...@@ -10,9 +14,6 @@ RUN mkdir -p /var/log/bitsd ...@@ -10,9 +14,6 @@ RUN mkdir -p /var/log/bitsd
EXPOSE 8008 EXPOSE 8008
EXPOSE 8888 EXPOSE 8888
RUN mkdir bits
COPY . /bits/ COPY . /bits/
WORKDIR /bits
ENTRYPOINT ./bootstrap.py && ./bitsd.py ENTRYPOINT ./bootstrap.py && ./bitsd.py
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment