22 lines
540 B
Docker
22 lines
540 B
Docker
ARG BUILD_IMAGE=l2j-build:latest
|
|
FROM ${BUILD_IMAGE} AS builder
|
|
|
|
FROM eclipse-temurin:25-jre AS runtime
|
|
|
|
RUN useradd -m l2j
|
|
WORKDIR /l2j
|
|
|
|
COPY --from=builder /out/login /l2j
|
|
COPY login/entrypoint.sh /l2j/entrypoint.sh
|
|
|
|
RUN chmod +x /l2j/entrypoint.sh \
|
|
&& mkdir -p /l2j/log \
|
|
&& chown -R l2j:l2j /l2j
|
|
|
|
USER l2j
|
|
|
|
# Стандартный порт логин-сервера L2 (2106) и порт статуса/телнета для GM-консоли (при необходимости)
|
|
EXPOSE 2106
|
|
|
|
ENTRYPOINT ["/l2j/entrypoint.sh"]
|