Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
FROM golang

WORKDIR /go/src/github.com/HarukaNetwork/HarukaX
FROM golang:1.14-alpine as build
LABEL maintainer=""
ENV GO111MODULE=on
WORKDIR /harukax

COPY . .

ENTRYPOINT ["go", "run", "."]
RUN CGO_ENABLED=0 GOOS=linux go build -o /build/harukax

FROM alpine:3.9

COPY --from=build /build/harukax /harukax
RUN touch .env # godotenv is weird and needs this

ENTRYPOINT ["/harukax"]