mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-11 06:29:29 +01:00
commit
43217458ce
@ -1,13 +1,18 @@
|
|||||||
## build Oragono
|
## build Oragono
|
||||||
FROM golang:1.14-alpine AS build-env
|
FROM golang:1.14-alpine AS build-env
|
||||||
|
|
||||||
RUN apk add --no-cache git make curl
|
RUN apk add --no-cache git make curl sed
|
||||||
|
|
||||||
# copy oragono
|
# copy oragono
|
||||||
RUN mkdir -p /go/src/github.com/oragono/oragono
|
RUN mkdir -p /go/src/github.com/oragono/oragono
|
||||||
WORKDIR /go/src/github.com/oragono/oragono
|
WORKDIR /go/src/github.com/oragono/oragono
|
||||||
ADD . /go/src/github.com/oragono/oragono/
|
ADD . /go/src/github.com/oragono/oragono/
|
||||||
|
|
||||||
|
# modify default config file so that it doesn't die on IPv6
|
||||||
|
# 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/oragono.yaml
|
||||||
|
run sed -i 's/^\s*\"\[::1\]:6667\":.*$//' /go/src/github.com/oragono/oragono/oragono.yaml
|
||||||
|
|
||||||
# make sure submodules are up-to-date
|
# make sure submodules are up-to-date
|
||||||
RUN git submodule update --init
|
RUN git submodule update --init
|
||||||
|
|
||||||
@ -36,6 +41,7 @@ RUN mkdir -p /ircd-bin
|
|||||||
COPY --from=build-env /go/bin/oragono /ircd-bin
|
COPY --from=build-env /go/bin/oragono /ircd-bin
|
||||||
COPY --from=build-env /go/src/github.com/oragono/oragono/languages /ircd-bin/languages/
|
COPY --from=build-env /go/src/github.com/oragono/oragono/languages /ircd-bin/languages/
|
||||||
COPY --from=build-env /go/src/github.com/oragono/oragono/oragono.yaml /ircd-bin/oragono.yaml
|
COPY --from=build-env /go/src/github.com/oragono/oragono/oragono.yaml /ircd-bin/oragono.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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user