-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
40 lines (34 loc) · 1.25 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
30
31
32
33
34
35
36
37
38
39
40
# ====================
# ⚙️ build an image from debian bookworm (debian 12)
# ====================
FROM bitnami/minideb:bookworm
SHELL ["/bin/bash", "-o", "errexit", "-o", "nounset", "-o", "pipefail", "-c", "-x"]
ARG STANDARD_PACKAGES="curl ca-certificates locales"
# ✅ install packages
# ✅ set up locale
ARG LOCALE=en_US
ENV LANG=${LOCALE}.UTF-8
RUN \
install_packages ${STANDARD_PACKAGES} ; \
localedef -i ${LOCALE} -c -f UTF-8 -A /usr/share/locale/locale.alias ${LOCALE}.UTF-8; \
echo "LC_ALL=${LOCALE}.UTF-8" >> /etc/environment; \
echo "${LOCALE}.UTF-8 UTF-8" >> /etc/locale.gen; \
echo "LANG=${LOCALE}.UTF-8" >> /etc/locale.conf; \
locale-gen ${LOCALE}.UTF-8
# ✅ copy files
COPY examples.d/ /root/.valet.d/examples.d/
COPY valet.d/ /opt/valet/valet.d/
COPY extras/ /opt/valet/extras/
COPY valet /opt/valet/valet
# ✅ add the valet binary to the path
# ✅ self config + build
RUN \
echo -e "#"'!'"/usr/bin/env bash"$'\n'"/opt/valet/valet \"\$@\"" > /usr/local/bin/valet; \
chmod +x /opt/valet/valet; \
chmod +x /opt/valet/valet.d/commands.d/self-build.sh; \
chmod +x /usr/local/bin/valet; \
export VALET_CONFIG_ENABLE_COLORS=true; \
valet self config --no-edit --override --export-current-values
# ✅ finalize the image
ENTRYPOINT [ "valet" ]
CMD [ ]