initial commit
This commit is contained in:
commit
9d249b0da3
2 changed files with 44 additions and 0 deletions
26
Containerfile
Normal file
26
Containerfile
Normal file
|
@ -0,0 +1,26 @@
|
|||
FROM docker.io/alpine:3.21 AS builder
|
||||
|
||||
ARG VTT_URL=""
|
||||
ENV SHA256_SUM=1f82297e5124c2c99e0c039d5562db861e22dc5ef385361d3993c54f7e07f278
|
||||
|
||||
RUN wget -O vtt.zip "$VTT_URL"
|
||||
RUN echo "$SHA256_SUM vtt.zip" | sha256sum -c - || exit 1
|
||||
RUN unzip vtt.zip -d /vtt
|
||||
|
||||
|
||||
FROM docker.io/alpine:3.21
|
||||
|
||||
RUN adduser -D -u 2222 vtt
|
||||
RUN mkdir /data && chown -R vtt:vtt /data
|
||||
|
||||
RUN apk --no-cache add \
|
||||
nodejs
|
||||
|
||||
COPY --from=builder /vtt/resources/app /app
|
||||
|
||||
USER vtt
|
||||
|
||||
ENTRYPOINT ["/usr/bin/node", "/app/main.js", "--dataPath=/data"]
|
||||
|
||||
VOLUME ["/data"]
|
||||
EXPOSE 30000
|
Loading…
Add table
Add a link
Reference in a new issue