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
|
||||
|
||||
# Install Tor and build dependencies
|
||||
# We keep python base image for potential Vanguards support later (which is python based),
|
||||
# but for now we are simplifying the build.
|
||||
# Install runtime dependencies
|
||||
RUN apk add --no-cache \
|
||||
tor \
|
||||
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 \
|
||||
libffi-dev \
|
||||
openssl-dev \
|
||||
grep \
|
||||
&& mkdir -p /var/lib/tor/hidden_service/ \
|
||||
&& chown -R tor:root /var/lib/tor
|
||||
cargo \
|
||||
&& pip install --no-cache-dir -r requirements.txt \
|
||||
&& apk del .build-deps
|
||||
|
||||
# Copy our Magic Script
|
||||
COPY assets/entrypoint.sh /entrypoint.sh
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue