Some checks failed
Build and publish / build (push) Failing after 17s
Source moved verbatim from mp/cms/ on 2026-04-29; mp was the first concrete adapter consuming the libreshop toolkit. Builds and publishes git.librete.ch/libreshop/cms on every main / v* push via the standard .gitea/workflows/build.yml shared across libreshop components.
31 lines
564 B
Docker
31 lines
564 B
Docker
FROM node:22.14.0-alpine
|
|
|
|
RUN apk update && \
|
|
apk add --no-cache build-base gcc autoconf automake \
|
|
zlib-dev libpng-dev nasm bash vips-dev
|
|
|
|
ARG NODE_ENV
|
|
ENV NODE_ENV ${NODE_ENV}
|
|
ENV PORT 5555
|
|
|
|
WORKDIR /app/
|
|
|
|
COPY ./package.json ./
|
|
|
|
ENV PATH=/node_modules/.bin:$PATH
|
|
|
|
RUN npm i --no-audit --no-fund --progress=false --no-warnings --log-level=error
|
|
RUN npm i --ignore-scripts=false --foreground-scripts --verbose sharp
|
|
|
|
COPY ./ ./
|
|
|
|
RUN chmod +x ./docker-entrypoint.sh
|
|
|
|
RUN npm run build
|
|
|
|
ENTRYPOINT ["/app/docker-entrypoint.sh"]
|
|
|
|
#USER node
|
|
|
|
EXPOSE 5555
|