1
0
mirror of https://gitlab.crans.org/nounous/ghostream.git synced 2025-07-06 19:24:00 +02:00

Initial Golang project

This commit is contained in:
Alexandre Iooss
2020-09-21 17:29:50 +02:00
commit b5a7b9bbcd
7 changed files with 335 additions and 0 deletions

14
build/Dockerfile Normal file
View File

@ -0,0 +1,14 @@
# Install dependencies and build
FROM golang:1.15-alpine AS build_base
RUN apk add --no-cache git
WORKDIR /code
COPY . .
RUN go mod download
RUN go build -o ./out/ghostream .
# Production image
FROM alpine:3.12
RUN apk add ca-certificates
COPY --from=build_base /code/out/ghostream /app/ghostream
EXPOSE 8080
CMD ["/app/ghostream"]