Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
e885b41e77
@ -1,19 +1,21 @@
|
|||||||
FROM python:3.8-slim
|
FROM python:3.8-slim
|
||||||
|
|
||||||
ENV PYTHONUNBUFFERED 1
|
ENV PYTHONUNBUFFERED 1
|
||||||
RUN apt-get update
|
|
||||||
RUN apt-get install -y build-essential gcc
|
|
||||||
|
|
||||||
RUN python -m venv /opt/venv
|
RUN apt-get update; \
|
||||||
ENV PATH="/opt/venv/bin:$PATH"
|
apt-get install -y build-essential gcc; \
|
||||||
|
python -m venv /opt/venv; \
|
||||||
RUN python -m pip install --upgrade pip
|
python -m pip install --upgrade pip;
|
||||||
|
|
||||||
ENV PATH="/opt/venv/bin:$PATH"
|
ENV PATH="/opt/venv/bin:$PATH"
|
||||||
|
|
||||||
RUN mkdir /code
|
RUN mkdir /code
|
||||||
|
|
||||||
WORKDIR /code
|
WORKDIR /code
|
||||||
|
|
||||||
COPY setup.py /code/
|
COPY setup.py /code/
|
||||||
COPY requirements.txt /code/
|
COPY requirements.txt /code/
|
||||||
|
|
||||||
RUN pip install -r requirements.txt
|
RUN pip install -r requirements.txt
|
||||||
|
|
||||||
COPY . /code/
|
COPY . /code/
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user