Browse Source

Add dockerfile

master
Jonas Franz 4 years ago
parent
commit
8dfa5c8f76
  1. 10
      Dockerfile

10
Dockerfile

@ -0,0 +1,10 @@ @@ -0,0 +1,10 @@
FROM golang:1.11-alpine3.7 AS build-env
COPY . ${GOPATH}/src/git.jonasfranz.software/JonasFranzDEV/mensabot
WORKDIR ${GOPATH}/src/git.jonasfranz.software/JonasFranzDEV/mensabot
RUN go build
FROM alpine:3.7
COPY --from=build-env /go/src/git.jonasfranz.software/JonasFranzDEV/mensabot/mensabot /app/mensabot/mensabot
ENTRYPOINT ["/app/mensabot/mensabot"]
Loading…
Cancel
Save