generated from emmeowzing/base
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
31 lines (21 loc) · 890 Bytes
/
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
26
27
28
29
30
31
ARG REGISTRY=docker.io
ARG IMAGE=ubuntu
ARG TAG=22.04
FROM ${REGISTRY}/${IMAGE}:${TAG}
SHELL [ "/bin/bash", "-c" ]
ENV DEBUG=false
# https://github.com/opencontainers/image-spec/blob/main/annotations.md#pre-defined-annotation-keys
LABEL org.opencontainers.image.description "Directory anarchy game"
LABEL org.opencontainers.image.licenses "MIT"
LABEL org.opencontainers.image.authors "Emma Doyle <[email protected]>, Willow Ahrens <[email protected]>"
LABEL org.opencontainers.image.documentation "https://anarchy.aperiodicity.com"
USER root
# apt list -a bash && apt install -y \
RUN apt update \
&& rm -rf /var/apt/lists/* \
&& groupadd anarchists --gid 1001 \
&& useradd -rm -d /opt/anarchy -s /bin/bash -g anarchists -u 1001 anarchist
WORKDIR /opt/anarchy
COPY --chown=anarchist:anarchists --chmod=755 scripts/cmd.sh .
USER anarchist
CMD [ "./cmd.sh" ]