feat: initial config, to be tested
This commit is contained in:
commit
b754737879
5 files changed
+260
No files matched your search
@@ -0,0 +1,54 @@
|
||||
# Build stage
|
||||
FROM eclipse-temurin:17-jdk as builder
|
||||
|
||||
# Install dependencies
|
||||
RUN apt-get update && apt-get install -y \
|
||||
git \
|
||||
git-lfs \
|
||||
gradle \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN git lfs install
|
||||
|
||||
# Clone repositories
|
||||
ARG WORLD_REPO=https://github.com/DarkanRS/world-server.git
|
||||
ARG CACHE_REPO=https://github.com/DarkanRS/cache.git
|
||||
|
||||
RUN mkdir -p /darkan && cd /darkan \
|
||||
&& git clone --depth 1 ${WORLD_REPO} world-server \
|
||||
&& git clone --depth 1 ${CACHE_REPO} cache
|
||||
|
||||
WORKDIR /darkan/world-server
|
||||
|
||||
# Build the project (adjust based on actual build command)
|
||||
# Note: Replace with actual build command from the repository
|
||||
RUN gradle build -x test || true
|
||||
|
||||
# Runtime stage
|
||||
FROM eclipse-temurin:17-jre
|
||||
|
||||
# Install runtime dependencies
|
||||
RUN apt-get update && apt-get install -y \
|
||||
git \
|
||||
git-lfs \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN git lfs install
|
||||
|
||||
# Copy built artifacts from builder
|
||||
COPY --from=builder /darkan /darkan
|
||||
|
||||
WORKDIR /darkan/world-server
|
||||
|
||||
# Expose ports (will be configured via .env)
|
||||
EXPOSE 43596 43597
|
||||
|
||||
# Set environment variables
|
||||
ENV MONGO_URL=mongodb
|
||||
ENV MONGO_PORT=27017
|
||||
ENV MONGO_USER=dkadmin
|
||||
ENV MONGO_PASSWORD=changeme
|
||||
|
||||
# Start command (adjust based on actual startup script)
|
||||
# Replace with actual startup command from the repository
|
||||
CMD ["./start.sh"]
|
||||
Reference in new issue
Block a user