Files
relay/backend/Dockerfile
2024-07-13 22:17:01 +03:00

23 lines
286 B
Docker

FROM golang:1.22.3-alpine as build
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
# Copy the rest of the application code to the working directory
COPY . .
RUN go build -o main .
FROM alpine:latest
WORKDIR /app
COPY --from=build /app/main .
EXPOSE 1308
CMD ["./main"]