professionals have standards
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
529593e26d
commit
fb107d0de7
13
Containerfile
Normal file
13
Containerfile
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
FROM golang:1.18 as builder
|
||||||
|
WORKDIR /go/src/app
|
||||||
|
COPY . .
|
||||||
|
RUN apt update && apt upgrade -y
|
||||||
|
RUN go build
|
||||||
|
|
||||||
|
FROM alpine:latest as final
|
||||||
|
WORKDIR /srv/
|
||||||
|
RUN mkdir /srv/nunbot
|
||||||
|
RUN mkdir /lib64 && ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2
|
||||||
|
COPY --from=builder /go/src/app/nunbot /srv/nunbot/
|
||||||
|
|
||||||
|
CMD ["/srv/nunbot/nunbot"]
|
Loading…
Reference in New Issue
Block a user