forked from CAltschaffel/mcbedrock-synology-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.s3
49 lines (41 loc) · 1.22 KB
/
Dockerfile.s3
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
FROM ubuntu:bionic as base
LABEL maintainer="tomasz@chorwat.pl"
LABEL project="https://github.com/tchorwat/bedrock-in-docker"
# Install dependencies
RUN apt-get update \
&& apt-get install -y \
gosu \
libcurl4 \
screen \
unzip \
wget \
&& rm -rf /var/lib/apt/lists/*
# Copy projects scripts
COPY ./scripts /scripts
# Create directory structures
RUN useradd -m -d /bedrock bedrock \
&& mkdir /downloads \
&& mkdir /backups \
&& mkdir /bedrock/worlds \
&& chown -R bedrock:bedrock /bedrock \
&& chmod -R 700 /scripts
ENV BEDROCK_IN_DOCKER_TERM_MIN="1"
ENV BEDROCK_IN_DOCKER_FORCE_RESTORE="0"
ENV BEDROCK_IN_DOCKER_FORCE_1_MIN_RESTART="0"
ENV BEDROCK_IN_DOCKER_RESTART_TIME_UTC="03:00"
WORKDIR /bedrock
USER root
EXPOSE 19132/udp 19133/udp
ENTRYPOINT ["/scripts/entrypoint.sh"]
CMD ["bedrock_server"]
FROM base
LABEL maintainer="tomasz@chorwat.pl"
LABEL project="https://github.com/tchorwat/bedrock-in-docker"
# Install awscli
RUN wget -q -O "/root/awscliv2.zip" https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip \
&& unzip /root/awscliv2.zip -d /root/ \
&& /root/aws/install \
&& rm /root/awscliv2.zip \
&& rm -R /root/aws
ENV BEDROCK_IN_DOCKER_BACKUP_s3_URI=
ENV BEDROCK_IN_DOCKER_CONFIG_s3_URI=