dockge/docker/Base.Dockerfile

40 lines
1.4 KiB
Text
Raw Normal View History

2023-10-26 05:23:45 +00:00
FROM node:20-bookworm-slim
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
2023-10-23 11:30:58 +00:00
2023-10-26 05:23:45 +00:00
# COPY --from=docker:dind /usr/local/bin/docker /usr/local/bin/
2023-10-23 11:30:58 +00:00
RUN apt update && apt install --yes --no-install-recommends \
curl \
ca-certificates \
2023-10-26 05:23:45 +00:00
gnupg \
2023-10-23 11:30:58 +00:00
unzip \
2023-10-26 05:23:45 +00:00
dumb-init \
&& install -m 0755 -d /etc/apt/keyrings \
&& curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg \
&& chmod a+r /etc/apt/keyrings/docker.gpg \
&& echo \
"deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \
"$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
tee /etc/apt/sources.list.d/docker.list > /dev/null \
&& apt update \
&& apt --yes --no-install-recommends install \
docker-ce-cli \
docker-compose-plugin \
&& rm -rf /var/lib/apt/lists/* \
&& npm install pnpm -g \
&& pnpm install -g tsx
2023-10-23 11:30:58 +00:00
2023-10-26 05:23:45 +00:00
# ensures that /var/run/docker.sock exists
# changes the ownership of /var/run/docker.sock
RUN touch /var/run/docker.sock && chown node:node /var/run/docker.sock
2023-10-23 11:30:58 +00:00
# Full Base Image
# MariaDB, Chromium and fonts
2023-10-26 05:23:45 +00:00
#FROM base-slim AS base
#ENV DOCKGE_ENABLE_EMBEDDED_MARIADB=1
#RUN apt update && \
# apt --yes --no-install-recommends install mariadb-server && \
# rm -rf /var/lib/apt/lists/* && \
# apt --yes autoremove