43 lines
748 B
Docker
43 lines
748 B
Docker
FROM git.zontreck.com/ariascreations/buildenvironments:flutter AS BUILDER
|
|
# Obtain the Flutter SDK
|
|
WORKDIR /app
|
|
COPY . .
|
|
|
|
ENV DOCKER 1
|
|
WORKDIR /app
|
|
RUN PATH=$PATH:/flutter/bin /bin/bash /app/compile.sh
|
|
|
|
|
|
FROM git.zontreck.com/ariascreations/buildenvironments:debian AS RCONBUILD
|
|
|
|
WORKDIR /app
|
|
|
|
RUN apt-get -y install build-essential git
|
|
RUN git clone https://github.com/Tiiffi/mcrcon
|
|
|
|
WORKDIR /app/mcrcon
|
|
|
|
RUN make
|
|
|
|
|
|
FROM git.zontreck.com/ariacreations/yolks:wine_9.16
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
COPY --from=BUILDER /app/out/server /app/server
|
|
COPY --from=RCONBUILD /app/mcrcon/mcrcon /app/rcon
|
|
|
|
|
|
EXPOSE 25306/tcp
|
|
EXPOSE 7779/tcp
|
|
EXPOSE 7779/udp
|
|
EXPOSE 7780/udp
|
|
EXPOSE 7780/tcp
|
|
EXPOSE 7781/udp
|
|
EXPOSE 7781/tcp
|
|
EXPOSE 7782/udp
|
|
EXPOSE 7782/tcp
|
|
|
|
|
|
USER container
|