12 lines
284 B
Docker
12 lines
284 B
Docker
FROM golang:1.16.2-alpine AS builder
|
|
RUN apk update
|
|
WORKDIR /app
|
|
COPY . /app
|
|
RUN GOOS=linux go build -o kartograph cmd/kartograph-map-generator/main.go
|
|
|
|
FROM alpine:latest
|
|
RUN apk update
|
|
WORKDIR /app
|
|
COPY --from=builder /app/kartograph /app/
|
|
EXPOSE 80
|
|
ENTRYPOINT ["/app/kartograph"]
|