1
0
mirror of https://github.com/Luzifer/webtotp.git synced 2024-09-16 14:58:28 +00:00
webtotp/Dockerfile
Knut Ahlers 906830f236
Fix build not working on Node 17
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2021-12-22 17:26:01 +01:00

25 lines
413 B
Docker

FROM golang:alpine as go
RUN set -ex \
&& apk add git \
&& go install github.com/Luzifer/gziphttp@latest
FROM node:16-alpine as node
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"]