mirror of
https://github.com/CPunch/gopenfusion.git
synced 2024-11-21 06:50:06 +00:00
dockerfile: switch to scratch
- build.sh: disables CGO and specifies linux - we really don't need the cstdlib now, and we don't need a busybox shell
This commit is contained in:
parent
124bb77f8d
commit
983588b6c9
11
Dockerfile
11
Dockerfile
@ -1,10 +1,7 @@
|
||||
FROM alpine:latest
|
||||
|
||||
WORKDIR /gopenfusion
|
||||
FROM scratch
|
||||
|
||||
# grab binary
|
||||
COPY ./bin/server ./
|
||||
RUN chmod +x ./server
|
||||
WORKDIR /gopenfusion
|
||||
COPY --chmod=0755 ./bin/server ./
|
||||
|
||||
ENTRYPOINT [ "/bin/sh", "-l", "-c" ]
|
||||
CMD ["/gopenfusion/server"]
|
||||
ENTRYPOINT [ "/gopenfusion/server" ]
|
Loading…
Reference in New Issue
Block a user