first version
This commit is contained in:
15
dockerfile
Normal file
15
dockerfile
Normal file
@@ -0,0 +1,15 @@
|
||||
FROM golang:1.25.7-alpine3.22 AS build
|
||||
|
||||
COPY . /src
|
||||
|
||||
RUN cd /src \
|
||||
&& go build -o dockerupdater \
|
||||
&& mkdir -p ./fs/var/opt/dockerupdater \
|
||||
&& mkdir -p ./fs/opt/dockerupdater \
|
||||
&& cp dockerupdater ./fs/opt/dockerupdater/dockerupdater
|
||||
|
||||
FROM scratch AS prod
|
||||
|
||||
COPY --from=build --chmod=755 /src/fs /
|
||||
|
||||
ENTRYPOINT [ "/opt/dockerupdater/dockerupdater" ]
|
||||
Reference in New Issue
Block a user