mirror of
https://github.com/iv-org/instances-api.git
synced 2025-05-12 11:32:26 -04:00
Update dockerfile with Tor, curl and yaml support
This commit is contained in:
parent
e58e7024e4
commit
c4da7f353f
2 changed files with 11 additions and 2 deletions
|
@ -3,14 +3,15 @@ WORKDIR /app
|
||||||
COPY ./shard.yml ./shard.yml
|
COPY ./shard.yml ./shard.yml
|
||||||
RUN shards install
|
RUN shards install
|
||||||
COPY ./src/ ./src/
|
COPY ./src/ ./src/
|
||||||
RUN crystal build ./src/instances.cr --release
|
RUN crystal build ./src/instances.cr -s -p -t
|
||||||
|
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
RUN apk add --no-cache gc pcre libgcc
|
RUN apk add --no-cache gc pcre libgcc yaml
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
RUN addgroup -g 1000 -S invidious && \
|
RUN addgroup -g 1000 -S invidious && \
|
||||||
adduser -u 1000 -S invidious -G invidious
|
adduser -u 1000 -S invidious -G invidious
|
||||||
COPY ./assets/ ./assets/
|
COPY ./assets/ ./assets/
|
||||||
|
COPY ./config.yml ./config.yml
|
||||||
COPY --from=builder /app/instances .
|
COPY --from=builder /app/instances .
|
||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|
|
@ -1,5 +1,13 @@
|
||||||
version: '3'
|
version: '3'
|
||||||
services:
|
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:
|
instances:
|
||||||
build: .
|
build: .
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue