1
0
mirror of https://github.com/evilsocket/shieldwall.git synced 2021-09-07 00:28:37 +03:00
Files
shieldwall-secure-server/Dockerfile
Simone Margaritelli 54095022cb vue frontend
2021-02-09 18:41:45 +01:00

23 lines
431 B
Docker

FROM golang:alpine as builder
RUN apk update && apk add --no-cache make
# download, cache and install deps
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
# copy and compiled the app
COPY . .
RUN make clean
RUN make api
# start a new stage from scratch
FROM alpine:latest
RUN apk --no-cache add ca-certificates
WORKDIR /root/
COPY --from=builder /app/_build/shieldwall-api .
EXPOSE 8666
ENTRYPOINT ["./shieldwall-api"]