mirror of
https://github.com/Luzifer/webtotp.git
synced 2024-12-23 04:41:21 +00:00
25 lines
402 B
Text
25 lines
402 B
Text
|
FROM golang:alpine as go
|
||
|
|
||
|
RUN set -ex \
|
||
|
&& apk add git \
|
||
|
&& go get -v github.com/Luzifer/gziphttp
|
||
|
|
||
|
|
||
|
FROM node: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"]
|