forked from External/ergo
strip dockerfile
This commit is contained in:
parent
ca62b268b0
commit
60172a0be4
1 changed files with 2 additions and 14 deletions
16
Dockerfile
16
Dockerfile
|
|
@ -1,7 +1,8 @@
|
||||||
## build ergo binary
|
## build ergo binary
|
||||||
FROM docker.io/golang:1.22-alpine AS build-env
|
FROM docker.io/golang:1.22-alpine AS build-env
|
||||||
|
|
||||||
RUN apk upgrade -U --force-refresh --no-cache && apk add --no-cache --purge --clean-protected -l -u make git
|
RUN apk upgrade -U --force-refresh --no-cache
|
||||||
|
RUN apk add --no-cache --purge --clean-protected -l -u make git
|
||||||
|
|
||||||
# copy ergo source
|
# copy ergo source
|
||||||
WORKDIR /go/src/github.com/ergochat/ergo
|
WORKDIR /go/src/github.com/ergochat/ergo
|
||||||
|
|
@ -18,13 +19,6 @@ RUN make install
|
||||||
## build ergo container
|
## build ergo container
|
||||||
FROM docker.io/alpine:3.19
|
FROM docker.io/alpine:3.19
|
||||||
|
|
||||||
# metadata
|
|
||||||
LABEL maintainer="Daniel Oaks <daniel@danieloaks.net>,Daniel Thamdrup <dallemon@protonmail.com>" \
|
|
||||||
description="Ergo is a modern, experimental IRC server written in Go"
|
|
||||||
|
|
||||||
# standard ports listened on
|
|
||||||
EXPOSE 6667/tcp 6697/tcp
|
|
||||||
|
|
||||||
# ergo itself
|
# ergo itself
|
||||||
COPY --from=build-env /go/bin/ergo \
|
COPY --from=build-env /go/bin/ergo \
|
||||||
/go/src/github.com/ergochat/ergo/default.yaml \
|
/go/src/github.com/ergochat/ergo/default.yaml \
|
||||||
|
|
@ -39,10 +33,4 @@ WORKDIR /ircd
|
||||||
# default motd
|
# default motd
|
||||||
COPY --from=build-env /go/src/github.com/ergochat/ergo/ergo.motd /ircd/ergo.motd
|
COPY --from=build-env /go/src/github.com/ergochat/ergo/ergo.motd /ircd/ergo.motd
|
||||||
|
|
||||||
# launch
|
|
||||||
ENTRYPOINT ["/ircd-bin/run.sh"]
|
ENTRYPOINT ["/ircd-bin/run.sh"]
|
||||||
|
|
||||||
# # uncomment to debug
|
|
||||||
# RUN apk add --no-cache bash
|
|
||||||
# RUN apk add --no-cache vim
|
|
||||||
# CMD /bin/bash
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue