mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-07 08:03:30 +08:00
success!!
This commit is contained in:
parent
a89b94f090
commit
7cb9cc9391
1
.dockerignore
Normal file
1
.dockerignore
Normal file
@ -0,0 +1 @@
|
|||||||
|
Dockerfile
|
||||||
19
Dockerfile
19
Dockerfile
@ -30,11 +30,6 @@ WORKDIR /home/ubuntu/ballistica
|
|||||||
# Compile the application
|
# Compile the application
|
||||||
RUN ./do_stuff
|
RUN ./do_stuff
|
||||||
|
|
||||||
# Optionally, clean up the build dependencies and any temporary files to reduce image size
|
|
||||||
# This step depends on how './do_stuff compile' works and if it generates any temporary files
|
|
||||||
RUN apt-get clean && \
|
|
||||||
rm -rf /var/lib/apt/lists/* /tmp/*
|
|
||||||
|
|
||||||
# Create a new stage for the runtime environment
|
# Create a new stage for the runtime environment
|
||||||
FROM ubuntu:24.04
|
FROM ubuntu:24.04
|
||||||
|
|
||||||
@ -43,10 +38,16 @@ ENV LANGUAGE=en_US
|
|||||||
|
|
||||||
WORKDIR /home/ubuntu/ballistica
|
WORKDIR /home/ubuntu/ballistica
|
||||||
|
|
||||||
|
ARG BOMBSQUAD_VERSION=N/A
|
||||||
|
LABEL bombsquad_version=${BOMBSQUAD_VERSION}
|
||||||
|
|
||||||
|
# Copy apt cache from builder to avoid redownloading
|
||||||
|
COPY --from=builder /var/cache/apt/ /var/cache/apt/
|
||||||
|
COPY --from=builder /var/lib/apt/lists/ /var/lib/apt/lists/
|
||||||
|
|
||||||
# Install runtime dependencies
|
# Install runtime dependencies
|
||||||
RUN DEBIAN_FRONTEND=noninteractive \
|
RUN DEBIAN_FRONTEND=noninteractive \
|
||||||
apt-get update -y && \
|
apt-get install -y \
|
||||||
apt-get install -y \
|
|
||||||
python3.12-venv \
|
python3.12-venv \
|
||||||
python3-pip \
|
python3-pip \
|
||||||
libsdl2-dev \
|
libsdl2-dev \
|
||||||
@ -57,9 +58,7 @@ RUN DEBIAN_FRONTEND=noninteractive \
|
|||||||
|
|
||||||
# Copy the compiled application from the builder stage
|
# Copy the compiled application from the builder stage
|
||||||
COPY --from=builder /home/ubuntu/ballistica/build/cmake/server-debug/staged/ /home/ubuntu/ballistica
|
COPY --from=builder /home/ubuntu/ballistica/build/cmake/server-debug/staged/ /home/ubuntu/ballistica
|
||||||
|
COPY --from=builder /home/ubuntu/ballistica/build/cmake/server-debug/ballisticakit_headless /home/ubuntu/ballistica/dist
|
||||||
ARG BOMBSQUAD_VERSION=N/A
|
|
||||||
LABEL bombsquad_version=${BOMBSQUAD_VERSION}
|
|
||||||
|
|
||||||
# Expose the necessary port
|
# Expose the necessary port
|
||||||
EXPOSE 43210/udp
|
EXPOSE 43210/udp
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user