Skip to content

Commit c4da7f3

Browse files
committed
Update dockerfile with Tor, curl and yaml support
1 parent e58e702 commit c4da7f3

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@ WORKDIR /app
33
COPY ./shard.yml ./shard.yml
44
RUN shards install
55
COPY ./src/ ./src/
6-
RUN crystal build ./src/instances.cr --release
6+
RUN crystal build ./src/instances.cr -s -p -t
77

88
FROM alpine:latest
9-
RUN apk add --no-cache gc pcre libgcc
9+
RUN apk add --no-cache gc pcre libgcc yaml
1010
WORKDIR /app
1111
RUN addgroup -g 1000 -S invidious && \
1212
adduser -u 1000 -S invidious -G invidious
1313
COPY ./assets/ ./assets/
14+
COPY ./config.yml ./config.yml
1415
COPY --from=builder /app/instances .
1516

1617
EXPOSE 3000

docker-compose.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
version: '3'
22
services:
3+
tor-socks-proxy:
4+
container_name: tor-socks-proxy
5+
image: peterdavehello/tor-socks-proxy:latest
6+
ports:
7+
- "127.0.0.1:8853:53/udp"
8+
- "127.0.0.1:9150:9150/tcp"
9+
restart: unless-stopped
10+
311
instances:
412
build: .
513
restart: unless-stopped

0 commit comments

Comments
 (0)