File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 128
128
.yarn /build-state.yml
129
129
.yarn /install-state.gz
130
130
.pnp. *
131
+
132
+ # bedrock server
133
+ bedrock_server /*
Original file line number Diff line number Diff line change @@ -19,12 +19,12 @@ RUN apt-get update \
19
19
20
20
# Install Python dependencies in one layer
21
21
COPY requirements.txt .
22
- RUN pip install --no-cache-dir -r requirements.txt
23
- RUN rm requirements.txt
22
+ RUN pip install --no-cache-dir -r requirements.txt; \
23
+ rm requirements.txt
24
24
25
25
# Create necessary directories
26
- RUN mkdir -p instance configs
27
- RUN mkdir -p /app/instance/worlds # Create necessary directories for volume mounts
26
+ RUN mkdir -p instance configs; \
27
+ mkdir -p /app/instance/worlds # Create necessary directories for volume mounts
28
28
# TODO: Add mount points for behavior_packs, resource_packs, etc.
29
29
30
30
# Copy only the necessary files to the container
@@ -33,11 +33,12 @@ COPY bedrock_server/ /app/instance
33
33
COPY backend/ /app/
34
34
35
35
# Expose the required port
36
- EXPOSE 8000
37
- EXPOSE 19132/udp
36
+ EXPOSE 8000 \
37
+ 19132/udp \
38
+ 19133/udp
38
39
39
40
# Healthcheck to ensure the container is healthy
40
- HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 CMD wget --quiet --tries=1 --spider http://localhost :8000/healthz || exit 1
41
+ HEALTHCHECK --interval=1m30s --timeout=30s --start-period=5s --retries=5 CMD wget --quiet --tries=1 --output-document=- http://0.0.0.0 :8000/healthz || exit 1
41
42
42
43
# Define the entry point for the container
43
44
CMD ["python" , "main.py" ]
You can’t perform that action at this time.
0 commit comments