Hey @Eventyret
I’m using the Dockerfile examples from the documentation.
Dockerfile
FROM node:16-alpine
# Installing libvips-dev for sharp Compatibility
RUN apk update && apk add --no-cache build-base gcc autoconf automake zlib-dev libpng-dev nasm bash vips-dev
ARG NODE_ENV=development
ENV NODE_ENV=${NODE_ENV}
WORKDIR /opt/
COPY ./package.json ./yarn.lock ./
ENV PATH /opt/node_modules/.bin:$PATH
RUN yarn config set network-timeout 600000 -g && yarn install
WORKDIR /opt/app
COPY ./ .
RUN yarn build
EXPOSE 1337
CMD ["yarn", "develop"]
Build is passing correctly, this error happens on the deployment stage.
Build log
---> 07ea0116a210
Step 2/13 : RUN apk update && apk add --no-cache build-base gcc autoconf automake zlib-dev libpng-dev nasm bash vips-dev
---> Using cache
---> 72217b4972e4
Step 3/13 : ARG NODE_ENV=development
---> Using cache
---> dc043605f46f
Step 4/13 : ENV NODE_ENV=${NODE_ENV}
---> Using cache
---> 192c9be64253
Step 5/13 : WORKDIR /opt/
---> Using cache
---> 7c62f69390ec
Step 6/13 : COPY ./package.json ./package-lock.json ./
---> Using cache
---> 58bd77289d20
217Step 7/13 : ENV PATH /opt/node_modules/.bin:$PATH
---> Using cache
---> fa34e77cff80
Step 8/13 : RUN npm install
---> Using cache
---> 8f98f2008069
Step 9/13 : WORKDIR /opt/app
---> Using cache
---> b3bc7aff45ee
Step 10/13 : COPY ./ .
---> fa9273f0a7ed
Step 11/13 : RUN npm run build
---> Running in 007579baf68f
> dm-cms@0.1.0 build
> strapi build
Starting the compilation for TypeScript files in /opt/app
Building your admin UI with development configuration...
ℹ Compiling Webpack
✔ Webpack: Compiled successfully in 26.10s
Admin UI built successfully
Removing intermediate container 007579baf68f
---> aabecdff7210
Step 12/13 : EXPOSE 1337
---> Running in 4f4532d505a9
Removing intermediate container 4f4532d505a9
---> 8276016df4e8
Step 13/13 : CMD ["npm", "run", "develop"]
---> Running in 42184d53daae
Removing intermediate container 42184d53daae
---> f9a11ab14
Successfully built f9247a11ab14