mirror of
https://git.rwth-aachen.de/acs/public/villas/web-backend-go/
synced 2025-03-30 00:00:12 +01:00
docker: fix build
This commit is contained in:
parent
2311d643c6
commit
67950fa63f
1 changed files with 7 additions and 6 deletions
13
Dockerfile
13
Dockerfile
|
@ -1,15 +1,16 @@
|
|||
FROM golang:1.12.9-buster AS builder
|
||||
|
||||
WORKDIR /go/src/app
|
||||
COPY . .
|
||||
RUN mkdir /build
|
||||
WORKDIR /build
|
||||
ADD . /build
|
||||
|
||||
RUN go get -d -v ./...
|
||||
RUN go install -v ./...
|
||||
RUN go build -o villasweb-backend
|
||||
|
||||
FROM debian:buster
|
||||
|
||||
COPY --from=builder /go/bin/villasweb-backend-go /usr/bin
|
||||
COPY --from=builder /build/villasweb-backend /usr/bin
|
||||
|
||||
EXPOSE 4000
|
||||
|
||||
CMD [ "villasweb-backend-go" ]
|
||||
CMD [ "villasweb-backend" ]
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue