Add initial Dockerfile
This commit is contained in:
parent
259dc875a4
commit
e40bfb4cd4
13
Dockerfile
Normal file
13
Dockerfile
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
FROM golang:latest as build
|
||||||
|
WORKDIR /build
|
||||||
|
COPY . .
|
||||||
|
RUN go test ./...
|
||||||
|
RUN go build
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
EXPOSE 8500
|
||||||
|
WORKDIR /app
|
||||||
|
COPY --from=build /build/templates /app/templates
|
||||||
|
COPY --from=build /build/static /app/static
|
||||||
|
COPY --from=build /build/barcodes /app/barcodes
|
||||||
|
CMD [ "/app/barcodes" ]
|
Loading…
Reference in New Issue
Block a user