forked from constverum/ProxyBroker
-
-
Notifications
You must be signed in to change notification settings - Fork 136
Expand file tree
/
Copy pathDockerfile
More file actions
40 lines (31 loc) · 1 KB
/
Dockerfile
File metadata and controls
40 lines (31 loc) · 1 KB
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
36
37
38
39
40
FROM python:3.13-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==2.1.3
FROM base AS builder
WORKDIR /app
COPY poetry.lock pyproject.toml README.md ./
COPY proxybroker proxybroker
RUN apt-get update && \
apt-get upgrade -y &&\
apt-get install -y gcc libc-dev libffi-dev && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN poetry config virtualenvs.create false && \
poetry install --no-interaction --no-ansi --without dev
EXPOSE 8888
ENTRYPOINT ["python", "-m", "proxybroker" ]