-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
29 lines (21 loc) · 1 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
26
27
28
29
FROM ubuntu:22.04
ARG DEBIAN_FRONTEND="noninteractive"
RUN --mount=type=tmpfs,target=/tmp \
--mount=type=cache,sharing=locked,target=/var/cache/apt \
--mount=type=cache,sharing=locked,target=/var/lib/apt \
set -o errexit -o xtrace; \
apt-get --yes --quiet update; \
apt-get --yes --quiet install --no-install-recommends make
ARG GID=1000
ARG UID=1000
ARG GROUP="makephile"
ARG USER="makephile"
RUN --mount=type=tmpfs,target=/tmp \
set -o errexit -o xtrace; \
groupadd --gid $GID "$GROUP"; \
useradd --create-home --shell '/bin/bash' --gid $GID --uid $UID "$USER"
USER $UNAME
COPY . /opt/makephile
WORKDIR /opt/makephile
ENTRYPOINT [ "make" ]
CMD [ "makephile_usage" ]