Skip to content
Open
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
17 changes: 10 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,18 @@ COPY go.mod .
COPY go.sum .
RUN go mod download

# Copy necessary parts of the Mail-Go source into builder's source
COPY *.go ./
COPY middleware middleware
COPY assets assets
COPY templates templates
# Copy all source
COPY . .

# Build to name "app".
RUN go build -o app .

EXPOSE 8080
# Wait until there's an actual MySQL connection we can use to start.
FROM alpine:latest

WORKDIR /AccountManager

COPY --from=builder /AccountManager/app .
COPY templates ./templates
COPY assets ./assets

CMD ["./app"]