This commit is contained in:
2026-01-29 19:47:55 +01:00
parent 506c8682fe
commit be9f9cf483
42 changed files with 756 additions and 2 deletions

16
cms/Dockerfile Normal file
View File

@@ -0,0 +1,16 @@
FROM node:20-alpine
# Installing libvips-dev for sharp Compatibility
RUN apk update && apk add --no-cache build-base gcc autoconf automake zlib-dev libpng-dev vips-dev git > /dev/null 2>&1
WORKDIR /opt/
COPY package.json ./
RUN npm install -g node-gyp
RUN npm config set fetch-retry-maxtimeout 600000 -g && npm install
ENV PATH /opt/node_modules/.bin:$PATH
WORKDIR /opt/app
COPY . .
RUN NODE_ENV=production npm run build
EXPOSE 1337
CMD ["npm", "run", "develop"]