Skip to content

Commit

Permalink
Use the tavdog/pixlet image from tronbyt/pixlet#1
Browse files Browse the repository at this point in the history
  • Loading branch information
IngmarStein committed Feb 9, 2025
1 parent c00bfba commit 15287f3
Showing 1 changed file with 6 additions and 20 deletions.
26 changes: 6 additions & 20 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
# build pixlet
FROM alpine:edge AS pixlet-builder

ENV PIXLET_REPO=https://github.com/tavdog/pixlet

RUN apk --no-cache add go=1.23.5-r0 npm=10.9.1-r0 libwebp-dev=1.5.0-r0 git=2.48.1-r0 make=4.4.1-r2 gcc=14.2.0-r5 musl-dev=1.2.5-r9
WORKDIR /
RUN git clone --depth 1 $PIXLET_REPO /pixlet
WORKDIR /pixlet
RUN npm install && npm run build && make build
FROM ghcr.io/tavdog/pixlet:latest AS pixlet-builder

# build runtime image
FROM alpine:edge AS runtime
Expand All @@ -19,18 +11,12 @@ ENV PYTHONUNBUFFERED=1
WORKDIR /app

# copy pixlet binary and python dependencies
COPY --from=pixlet-builder /pixlet/pixlet /pixlet/pixlet
COPY --from=pixlet-builder /bin/pixlet /pixlet/pixlet

RUN apk --no-cache add esptool=4.8.1-r0 --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing/ && \
apk --no-cache add python3=3.12.9-r0 \
py3-flask=3.0.3-r0 \
py3-gunicorn=23.0.0-r0 \
py3-dotenv=1.0.1-r1 \
libwebp=1.5.0-r0 \
libwebpmux=1.5.0-r \
libwebpdemux=1.5.0-r \
procps-ng=4.0.4-r2 \
git=2.48.1-r0
RUN apk --no-cache add esptool --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing/ && \
apk --no-cache add python3 py3-flask py3-gunicorn py3-dotenv \
libwebp libwebpmux libwebpdemux \
procps-ng git tzdata

COPY . /app

Expand Down

0 comments on commit 15287f3

Please sign in to comment.