mirror of
https://github.com/bvanroll/stage-backend.git
synced 2025-08-30 12:32:47 +00:00
go versie
This commit is contained in:
@@ -1,10 +1,9 @@
|
||||
from python:3.7-alpine
|
||||
|
||||
copy . /app
|
||||
workdir /app
|
||||
|
||||
run pip install -r requirements.txt
|
||||
expose 80
|
||||
entrypoint [ "python" ]
|
||||
|
||||
cmd [ "app.py" ]
|
||||
FROM golang:alpine as builder
|
||||
RUN mkdir /build
|
||||
COPY main.go /build/main.go
|
||||
WORKDIR /build
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags '-extldflags "-static"' -o main .
|
||||
FROM scratch
|
||||
COPY --from=builder /build/main /main
|
||||
EXPOSE 80
|
||||
CMD ["./main"]
|
Reference in New Issue
Block a user