Commit 29becc8f authored by JackV's avatar JackV

Rearrange docker build instructions to reduce image size

parent 4d7aa0e4
FROM alpine:latest
RUN apk -U add py3-pip python3-dev py3-cffi alpine-sdk
RUN pip3 install --upgrade pip
RUN mkdir bits
COPY . /bits/
WORKDIR /bits
RUN pip3 install -r requirements.txt
RUN apk -U add python3 py3-pip python3-dev py3-cffi alpine-sdk && \
pip3 install --upgrade pip && \
pip3 install -r requirements.txt && \
apk del python3-dev py3-cffi alpine-sdk
EXPOSE 8008
EXPOSE 8888
......
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