Update dockerfile with Tor, curl and yaml support

This commit is contained in:
syeopite 2021-05-30 06:44:09 -07:00
parent e58e7024e4
commit c4da7f353f
No known key found for this signature in database
GPG Key ID: 6FA616E5A5294A82
2 changed files with 11 additions and 2 deletions

View File

@ -3,14 +3,15 @@ WORKDIR /app
COPY ./shard.yml ./shard.yml
RUN shards install
COPY ./src/ ./src/
RUN crystal build ./src/instances.cr --release
RUN crystal build ./src/instances.cr -s -p -t
FROM alpine:latest
RUN apk add --no-cache gc pcre libgcc
RUN apk add --no-cache gc pcre libgcc yaml
WORKDIR /app
RUN addgroup -g 1000 -S invidious && \
adduser -u 1000 -S invidious -G invidious
COPY ./assets/ ./assets/
COPY ./config.yml ./config.yml
COPY --from=builder /app/instances .
EXPOSE 3000

View File

@ -1,5 +1,13 @@
version: '3'
services:
tor-socks-proxy:
container_name: tor-socks-proxy
image: peterdavehello/tor-socks-proxy:latest
ports:
- "127.0.0.1:8853:53/udp"
- "127.0.0.1:9150:9150/tcp"
restart: unless-stopped
instances:
build: .
restart: unless-stopped