-
Notifications
You must be signed in to change notification settings - Fork 575
/
Dockerfile
25 lines (19 loc) · 1.13 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM azul/zulu-openjdk-alpine:17.0.5-17.38.21
RUN apk update && apk upgrade && apk add bash
RUN mkdir /terracotta && chgrp -R 0 /terracotta && chmod -R g+rX /terracotta
RUN mkdir /terracotta/config && chgrp -R 0 /terracotta/config && chmod -R g+rX /terracotta/config
RUN mkdir /terracotta/run && chgrp -R 0 /terracotta/run && chmod -R g+rwX /terracotta/run
WORKDIR /terracotta
# This volume can be mounted with "ro" flag.
# This is where the configurations will be sourced and eventually copied elsewhere within the container.
VOLUME "/terracotta/config"
# This folder can be mounted with "rw" flag.
# This is where the default configurations will output any logs, data, etc
# If the volume is mounted, the container will support being restarted in the same state.
# If a volume is mounted, be sure to set the correct chmod permissions in the host machine.
# Also, you might need to use a special cleanup task to remove the created files in the host machine
VOLUME "/terracotta/run"
COPY tools /terracotta/tools
COPY client /terracotta/client
COPY docker/config-tool/entrypoint.sh /terracotta/tools/entrypoint.sh
ENTRYPOINT ["./tools/entrypoint.sh"]