Skip to content

Commit

Permalink
chore: use alpine linux to minimize image size
Browse files Browse the repository at this point in the history
  • Loading branch information
Integral-Tech committed Jan 1, 2025
1 parent 4e860b7 commit 570f68b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# syntax=docker/dockerfile:labs

FROM node:22-slim AS base
FROM node:22-alpine AS base
RUN rm -f /etc/apt/apt.conf.d/docker-clean; echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' > /etc/apt/apt.conf.d/keep-cache
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/apt,sharing=locked \
Expand Down Expand Up @@ -36,7 +36,7 @@ RUN --mount=type=cache,id=pnpm,target=/pnpm/store,sharing=locked \
pnpm deploy --filter=q2tg-main --prod deploy
RUN cd ui && pnpm run build

FROM debian:bookworm-slim AS tgs-to-gif-build
FROM alpine:latest AS tgs-to-gif-build
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/apt,sharing=locked \
apt update && apt-get --no-install-recommends install -y \
Expand Down

0 comments on commit 570f68b

Please sign in to comment.