You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
596 B

FROM golang:alpine AS Builder
# Set the Current Working Directory inside the container
# Install basic packages
RUN apk add \
gcc \
# Copy everything from the current directory to the PWD (Present Working Directory) inside the container
COPY . .
# Download all the dependencies
RUN go mod download
# Build image
RUN go build .
FROM alpine:latest AS Runner
COPY templates ./templates
COPY --from=Builder /app/misso /app/app
# This container exposes port 8080 to the outside world
EXPOSE 8080/tcp
# Run the executable
CMD ["/app/app"]