mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-06 15:47:06 +08:00
Removed unnecessary packages getting installed
This commit is contained in:
parent
40096eaeb7
commit
6fe20ff382
@ -40,9 +40,9 @@ COPY ./ /home/ubuntu/ballistica
|
|||||||
WORKDIR /home/ubuntu/ballistica
|
WORKDIR /home/ubuntu/ballistica
|
||||||
|
|
||||||
# Compile the application
|
# Compile the application
|
||||||
RUN make cmake-server-build
|
RUN make cmake-server-build \
|
||||||
RUN mkdir ./../ballistica_cmake_server
|
&& mkdir ./../ballistica_cmake_server \
|
||||||
RUN mv build/cmake/* ./../ballistica_cmake_server
|
&& mv build/cmake/* ./../ballistica_cmake_server
|
||||||
|
|
||||||
#-------------------------------RUNNER--------------------------------
|
#-------------------------------RUNNER--------------------------------
|
||||||
# Create a new stage for the runtime environment
|
# Create a new stage for the runtime environment
|
||||||
@ -65,14 +65,9 @@ LABEL BOMBSQUAD_VERSION=${bombsquad_version}
|
|||||||
# Install runtime dependencies
|
# Install runtime dependencies
|
||||||
RUN apt-get update -y && \
|
RUN apt-get update -y && \
|
||||||
apt-get install -y \
|
apt-get install -y \
|
||||||
python3.12-venv \
|
python3.12-dev \
|
||||||
python3-pip \
|
&& rm -rf /var/lib/apt/lists/* \
|
||||||
libsdl2-dev \
|
&& python3.12 -c "import uuid;print(uuid.uuid4())">/etc/machine-id
|
||||||
libvorbisfile3 \
|
|
||||||
freeglut3-dev \
|
|
||||||
libopenal1 \
|
|
||||||
curl \
|
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
# Copy the compiled application from the builder stage
|
# Copy the compiled application from the builder stage
|
||||||
COPY --from=builder /home/ubuntu/ballistica_cmake_server/*/staged \
|
COPY --from=builder /home/ubuntu/ballistica_cmake_server/*/staged \
|
||||||
@ -85,7 +80,6 @@ WORKDIR /home/ubuntu/ballistica
|
|||||||
|
|
||||||
# Expose the necessary port
|
# Expose the necessary port
|
||||||
EXPOSE 43210/udp
|
EXPOSE 43210/udp
|
||||||
EXPOSE 43210/tcp
|
|
||||||
|
|
||||||
# Set the default command to run the application
|
# Set the default command to run the application
|
||||||
CMD [ "./ballisticakit_server" ]
|
CMD [ "./ballisticakit_server" ]
|
||||||
@ -689,10 +689,16 @@ def docker_build() -> None:
|
|||||||
from batools import version
|
from batools import version
|
||||||
|
|
||||||
version_num, build_num = version.get_current_version()
|
version_num, build_num = version.get_current_version()
|
||||||
_docker_build(
|
image_name = 'bombsquad_server'
|
||||||
'bombsquad_server',
|
try:
|
||||||
'.',
|
print(f'Building docker image {image_name} version {version_num}:{build_num}')
|
||||||
version_num,
|
_docker_build(
|
||||||
build_num,
|
image_name,
|
||||||
)
|
'.',
|
||||||
os.remove('Dockerfile')
|
version_num,
|
||||||
|
build_num,
|
||||||
|
)
|
||||||
|
except KeyboardInterrupt:
|
||||||
|
print('Stopping docker image build.')
|
||||||
|
finally:
|
||||||
|
os.remove('Dockerfile')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user