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
|
||||
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
|
||||
WORKDIR /go/src/github.com/ergochat/ergo
|
||||
|
|
@ -18,13 +19,6 @@ RUN make install
|
|||
## build ergo container
|
||||
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
|
||||
COPY --from=build-env /go/bin/ergo \
|
||||
/go/src/github.com/ergochat/ergo/default.yaml \
|
||||
|
|
@ -39,10 +33,4 @@ WORKDIR /ircd
|
|||
# default motd
|
||||
COPY --from=build-env /go/src/github.com/ergochat/ergo/ergo.motd /ircd/ergo.motd
|
||||
|
||||
# launch
|
||||
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