initial commit
This commit is contained in:
20
Dockerfile
Normal file
20
Dockerfile
Normal file
@@ -0,0 +1,20 @@
|
||||
FROM --platform=$BUILDPLATFORM golang:1.21-alpine as build
|
||||
|
||||
ADD . /app
|
||||
WORKDIR /app
|
||||
|
||||
RUN apk add --no-cache make ca-certificates
|
||||
|
||||
RUN make build BUILD_ARCH="$TARGETARCH" BUILD_OS="$TARGETOS"
|
||||
|
||||
FROM --platform=$TARGETPLATFORM alpine:latest
|
||||
|
||||
WORKDIR /data
|
||||
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
||||
COPY --from=build /app/build/morningalarm /app/morningalarm
|
||||
|
||||
|
||||
EXPOSE 3000
|
||||
VOLUME [ "/data" ]
|
||||
|
||||
CMD [ "/app/morningalarm" ]
|
||||
Reference in New Issue
Block a user