proper-website-2/Dockerfile

17 lines
443 B
Docker
Raw Normal View History

2022-05-14 21:09:48 +02:00
#FROM golang:1.17.8-alpine AS builder
#ARG APIURL
#WORKDIR /project
#ADD . /project/
#RUN go mod tidy
#RUN GOARCH=wasm GOOS=js go build -o web/app.wasm -ldflags="-X 'main.ApiURL=$APIURL'" ./src
#RUN go build -o app -ldflags="-X 'main.ApiURL=$APIURL'" ./src
2022-03-12 16:22:41 +01:00
2022-05-14 21:09:48 +02:00
FROM alpine:latest
2022-03-12 16:22:41 +01:00
RUN apk --no-cache add ca-certificates
2022-05-14 21:09:48 +02:00
WORKDIR /root
RUN mkdir ./web
COPY ./web ./web
COPY ./build/web/app.wasm ./web/
COPY ./build/app ./
2022-03-12 16:22:41 +01:00
EXPOSE 8000
2022-03-13 19:34:20 +01:00
CMD ["./app"]