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