mirror of
https://github.com/factoriotools/factorio-docker.git
synced 2025-10-19 20:29:58 +02:00
Add rcon client to container
This commit is contained in:
@@ -1,5 +1,13 @@
|
||||
FROM debian:stable-slim
|
||||
FROM debian:stable-slim AS builder
|
||||
RUN apt-get -q update \
|
||||
&& DEBIAN_FRONTEND=noninteractive apt-get -qy install build-essential
|
||||
|
||||
WORKDIR /src
|
||||
COPY rcon/* /src
|
||||
RUN make
|
||||
|
||||
# build factorio image
|
||||
FROM debian:stable-slim
|
||||
LABEL maintainer="https://github.com/factoriotools/factorio-docker"
|
||||
|
||||
ARG USER=factorio
|
||||
@@ -81,6 +89,7 @@ RUN set -ox pipefail \
|
||||
|
||||
COPY files/*.sh /
|
||||
COPY files/config.ini /opt/factorio/config/config.ini
|
||||
COPY --from=builder /src/rcon /bin/rcon
|
||||
|
||||
VOLUME /factorio
|
||||
EXPOSE $PORT/udp $RCON_PORT/tcp
|
||||
|
Reference in New Issue
Block a user