Docker building and various fixes around the code.
This commit is contained in:
14
Dockerfile
Normal file
14
Dockerfile
Normal file
@@ -0,0 +1,14 @@
|
||||
FROM golang:1.13.1-alpine AS build
|
||||
|
||||
WORKDIR /discordrone
|
||||
COPY . .
|
||||
|
||||
RUN CGO_ENABLED=0 go build -tags netgo -ldflags '-w -extldflags "-static"'
|
||||
|
||||
FROM alpine:3.10
|
||||
LABEL maintainer "Stanislav N. <pztrn@pztrn.name>"
|
||||
|
||||
COPY --from=build /discordrone/discordrone /app/discordrone
|
||||
RUN apk add --no-cache ca-certificates
|
||||
|
||||
ENTRYPOINT [ "/app/discordrone" ]
|
Reference in New Issue
Block a user