29 lines
744 B
Docker
29 lines
744 B
Docker
|
|
FROM eclipse-temurin:21-jre
|
||
|
|
|
||
|
|
# Install required packages
|
||
|
|
RUN apt-get update && \
|
||
|
|
apt-get install -y \
|
||
|
|
curl \
|
||
|
|
&& rm -rf /var/lib/apt/lists/*
|
||
|
|
|
||
|
|
# Create emulator directory
|
||
|
|
WORKDIR /emulator
|
||
|
|
|
||
|
|
# Copy emulator files
|
||
|
|
COPY Habbo-3.6.0-jar-with-dependencies.jar /emulator/
|
||
|
|
COPY config.docker.ini /emulator/config.ini
|
||
|
|
COPY plugins/ /emulator/plugins/
|
||
|
|
|
||
|
|
# Create logging directory
|
||
|
|
RUN mkdir -p /emulator/logging
|
||
|
|
|
||
|
|
# Expose game server and WebSocket ports
|
||
|
|
EXPOSE 30000 2096
|
||
|
|
|
||
|
|
# Health check - check if port 30000 is listening
|
||
|
|
HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \
|
||
|
|
CMD curl -f http://localhost:30000 || exit 1
|
||
|
|
|
||
|
|
# Run emulator
|
||
|
|
CMD ["java", "-Xmx2G", "-Xms512M", "-jar", "Habbo-3.6.0-jar-with-dependencies.jar"]
|