mirror of
https://github.com/iv-org/instances-api.git
synced 2025-03-13 09:46:34 -04:00
Update dockerfile with Tor, curl and yaml support
This commit is contained in:
parent
e58e7024e4
commit
c4da7f353f
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user