forked from constverum/ProxyBroker
-
-
Notifications
You must be signed in to change notification settings - Fork 118
/
Copy pathDockerfile
35 lines (26 loc) · 852 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
FROM python:3.9-slim AS base
ENV \
# Keeps Python from generating .pyc files in the container
PYTHONDONTWRITEBYTECODE=1 \
# Turns off buffering for easier container logging
PYTHONUNBUFFERED=1 \
PIP_NO_CACHE_DIR=1 \
PIP_DISABLE_PIP_VERSION_CHECK=1
#RUN apt-get update \
# && apt-get install -y --no-install-recommends gcc libc-dev libffi-dev \
# && apt-get clean
RUN apt-get update -y &&\
apt-get upgrade -y &&\
apt-get autoremove -y --purge &&\
apt-get clean &&\
rm -rf /var/lib/lists/*
RUN \
pip install poetry==1.8.4
FROM base AS builder
WORKDIR /app
COPY poetry.lock pyproject.toml ./
RUN poetry config virtualenvs.create false && \
poetry install --no-interaction --no-ansi --no-dev
COPY proxybroker proxybroker
EXPOSE 8888
ENTRYPOINT ["python", "-m", "proxybroker" ]