1
0
Fork 0
mirror of https://github.com/Luzifer/webtotp.git synced 2024-11-14 02:02:44 +00:00
webtotp/Dockerfile

25 lines
413 B
Text
Raw Normal View History

2019-06-01 23:20:29 +00:00
FROM golang:alpine as go
RUN set -ex \
&& apk add git \
&& go install github.com/Luzifer/gziphttp@latest
2019-06-01 23:20:29 +00:00
FROM node:16-alpine as node
2019-06-01 23:20:29 +00:00
COPY . /src
WORKDIR /src
RUN set -ex \
&& npm ci \
&& npm run build
FROM alpine:latest
COPY --from=go /go/bin/gziphttp /usr/local/bin/
COPY --from=node /src/dist /usr/local/share/webtotp
EXPOSE 3000/tcp
CMD ["gziphttp", "-d", "/usr/local/share/webtotp"]