13 lines
284 B
Text
13 lines
284 B
Text
|
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"]
|