Update and rename Dockerfile to Containerfile

This commit is contained in:
Rawley Fowler
2022-05-10 14:02:58 -06:00
committed by GitHub
parent 5afbd3e15b
commit 3a3906ebc7

11
Containerfile Normal file
View File

@@ -0,0 +1,11 @@
FROM --platform=${BUILDPLATFORM} golang:1.18-bullseye AS build
WORKDIR .
ENV CGO_ENABLED=0
ARG TARGETOS
ARG TARGETARCH
RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -o /bin/rawleydotxyz .
FROM scratch AS bin
COPY --from=build /bin/rawleydotxyz /
EXPOSE 8080/tcp
CMD ["/rawleydotxyz"]