mirror of https://github.com/nocturn9x/nimd.git
Removed now unneeded docker config
This commit is contained in:
parent
c97c6678c2
commit
a9cb133b71
|
@ -1,4 +0,0 @@
|
||||||
.git
|
|
||||||
nimd
|
|
||||||
src/main
|
|
||||||
artix.iso
|
|
|
@ -5,4 +5,8 @@ main
|
||||||
*.iso
|
*.iso
|
||||||
nimd
|
nimd
|
||||||
main
|
main
|
||||||
|
boot.sh
|
||||||
|
rootfs
|
||||||
|
packervm
|
||||||
|
test
|
||||||
|
|
||||||
|
|
17
Dockerfile
17
Dockerfile
|
@ -1,17 +0,0 @@
|
||||||
FROM nimlang/nim AS builder
|
|
||||||
|
|
||||||
COPY . /code
|
|
||||||
WORKDIR /code
|
|
||||||
|
|
||||||
# Removes any already existing binary so that when compilation fails the container stops
|
|
||||||
RUN rm -f /code/nimd
|
|
||||||
RUN rm -f /code/main
|
|
||||||
RUN nimble install syscall glob shlex -y
|
|
||||||
RUN nim -d:release --opt:size --passL:"-static" --gc:orc -d:useMalloc c -o:nimd src/main
|
|
||||||
RUN cp /code/nimd /sbin/nimd
|
|
||||||
|
|
||||||
FROM alpine:latest
|
|
||||||
|
|
||||||
COPY --from=builder /code/nimd /sbin/nimd
|
|
||||||
# ENTRYPOINT ["/bin/sh", "-l"]
|
|
||||||
ENTRYPOINT [ "/sbin/nimd", "--extra"]
|
|
Loading…
Reference in New Issue