removal of dev packages (the fuck?)
This commit is contained in:
parent
aa6ce865a7
commit
7c63396b68
1 changed files with 14 additions and 6 deletions
20
Dockerfile
20
Dockerfile
|
|
@ -1,17 +1,25 @@
|
||||||
FROM python:3.11-alpine
|
FROM python:3.11-alpine
|
||||||
|
|
||||||
# Install Tor and build dependencies
|
# Install runtime dependencies
|
||||||
# We keep python base image for potential Vanguards support later (which is python based),
|
|
||||||
# but for now we are simplifying the build.
|
|
||||||
RUN apk add --no-cache \
|
RUN apk add --no-cache \
|
||||||
tor \
|
tor \
|
||||||
curl \
|
curl \
|
||||||
|
openssl \
|
||||||
|
ca-certificates \
|
||||||
|
grep \
|
||||||
|
libffi \
|
||||||
|
&& mkdir -p /var/lib/tor/hidden_service/ \
|
||||||
|
&& chown -R tor:root /var/lib/tor
|
||||||
|
|
||||||
|
# Install Build Dependencies and Vanguards
|
||||||
|
COPY requirements.txt .
|
||||||
|
RUN apk add --no-cache --virtual .build-deps \
|
||||||
build-base \
|
build-base \
|
||||||
libffi-dev \
|
libffi-dev \
|
||||||
openssl-dev \
|
openssl-dev \
|
||||||
grep \
|
cargo \
|
||||||
&& mkdir -p /var/lib/tor/hidden_service/ \
|
&& pip install --no-cache-dir -r requirements.txt \
|
||||||
&& chown -R tor:root /var/lib/tor
|
&& apk del .build-deps
|
||||||
|
|
||||||
# Copy our Magic Script
|
# Copy our Magic Script
|
||||||
COPY assets/entrypoint.sh /entrypoint.sh
|
COPY assets/entrypoint.sh /entrypoint.sh
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue