mirror of
https://github.com/cubixle/gridlock.git
synced 2026-04-25 02:24:44 +01:00
11 lines
197 B
Docker
11 lines
197 B
Docker
FROM golang:1 as build
|
|
COPY . /app
|
|
WORKDIR /app
|
|
RUN CGO_ENABLED=0 go build -o /app/bin main.go
|
|
|
|
FROM alpine:latest
|
|
WORKDIR /app
|
|
COPY --from=build /app/bin /app/bin
|
|
RUN chmod +x ./bin
|
|
CMD ["./bin"]
|