mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-22 03:49:27 +01:00
Update Dockerfile to work with Ergo naming change
This commit is contained in:
parent
d85fe8c3cc
commit
cf33122f15
26
Dockerfile
26
Dockerfile
@ -1,29 +1,29 @@
|
|||||||
## build Oragono
|
## build Ergo
|
||||||
FROM golang:1.16-alpine AS build-env
|
FROM golang:1.16-alpine AS build-env
|
||||||
|
|
||||||
RUN apk add --no-cache git make curl sed
|
RUN apk add --no-cache git make curl sed
|
||||||
|
|
||||||
# copy oragono
|
# copy ergo
|
||||||
RUN mkdir -p /go/src/github.com/oragono/oragono
|
RUN mkdir -p /go/src/github.com/ergochat/ergo
|
||||||
WORKDIR /go/src/github.com/oragono/oragono
|
WORKDIR /go/src/github.com/ergochat/ergo
|
||||||
ADD . /go/src/github.com/oragono/oragono/
|
ADD . /go/src/github.com/ergochat/ergo/
|
||||||
|
|
||||||
# modify default config file so that it doesn't die on IPv6
|
# modify default config file so that it doesn't die on IPv6
|
||||||
# and so it can be exposed via 6667 by default
|
# and so it can be exposed via 6667 by default
|
||||||
run sed -i 's/^\(\s*\)\"127.0.0.1:6667\":.*$/\1":6667":/' /go/src/github.com/oragono/oragono/default.yaml
|
run sed -i 's/^\(\s*\)\"127.0.0.1:6667\":.*$/\1":6667":/' /go/src/github.com/ergochat/ergo/default.yaml
|
||||||
run sed -i 's/^\s*\"\[::1\]:6667\":.*$//' /go/src/github.com/oragono/oragono/default.yaml
|
run sed -i 's/^\s*\"\[::1\]:6667\":.*$//' /go/src/github.com/ergochat/ergo/default.yaml
|
||||||
|
|
||||||
# compile
|
# compile
|
||||||
RUN make
|
RUN make
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## run Oragono
|
## run Ergo
|
||||||
FROM alpine:3.9
|
FROM alpine:3.9
|
||||||
|
|
||||||
# metadata
|
# metadata
|
||||||
LABEL maintainer="daniel@danieloaks.net"
|
LABEL maintainer="daniel@danieloaks.net"
|
||||||
LABEL description="Oragono is a modern, experimental IRC server written in Go"
|
LABEL description="Ergo is a modern, experimental IRC server written in Go"
|
||||||
|
|
||||||
# install latest updates and configure alpine
|
# install latest updates and configure alpine
|
||||||
RUN apk update
|
RUN apk update
|
||||||
@ -35,9 +35,9 @@ EXPOSE 6667/tcp 6697/tcp
|
|||||||
|
|
||||||
# oragono itself
|
# oragono itself
|
||||||
RUN mkdir -p /ircd-bin
|
RUN mkdir -p /ircd-bin
|
||||||
COPY --from=build-env /go/bin/oragono /ircd-bin
|
COPY --from=build-env /go/bin/ergo /ircd-bin
|
||||||
COPY --from=build-env /go/src/github.com/oragono/oragono/languages /ircd-bin/languages/
|
COPY --from=build-env /go/src/github.com/ergochat/ergo/languages /ircd-bin/languages/
|
||||||
COPY --from=build-env /go/src/github.com/oragono/oragono/default.yaml /ircd-bin/default.yaml
|
COPY --from=build-env /go/src/github.com/ergochat/ergo/default.yaml /ircd-bin/default.yaml
|
||||||
|
|
||||||
COPY distrib/docker/run.sh /ircd-bin/run.sh
|
COPY distrib/docker/run.sh /ircd-bin/run.sh
|
||||||
RUN chmod +x /ircd-bin/run.sh
|
RUN chmod +x /ircd-bin/run.sh
|
||||||
@ -47,7 +47,7 @@ VOLUME /ircd
|
|||||||
WORKDIR /ircd
|
WORKDIR /ircd
|
||||||
|
|
||||||
# default motd
|
# default motd
|
||||||
COPY --from=build-env /go/src/github.com/oragono/oragono/oragono.motd /ircd/oragono.motd
|
COPY --from=build-env /go/src/github.com/ergochat/ergo/ergo.motd /ircd/ergo.motd
|
||||||
|
|
||||||
# launch
|
# launch
|
||||||
ENTRYPOINT ["/ircd-bin/run.sh"]
|
ENTRYPOINT ["/ircd-bin/run.sh"]
|
||||||
|
Loading…
Reference in New Issue
Block a user