System Information
- Strapi Version: 0.1.0
- Operating System: Mac M1
- Database: Postgres
- Node Version: 18 Alphine
- NPM Version: 6
- Yarn Version:
Here Is my Package.json:
{
“name”: “ta-io-strapi”,
“private”: true,
“version”: “0.1.0”,
“description”: “A Strapi application”,
“scripts”: {
“develop”: “strapi develop”,
“start”: “strapi start”,
“build”: “strapi build”,
“strapi”: “strapi”
},
“dependencies”: {
“@strapi/plugin-documentation”: “^4.13.4”,
“@strapi/plugin-i18n”: “^4.16.2”,
“@strapi/plugin-sentry”: “^4.16.2”,
“@strapi/plugin-users-permissions”: “^4.16.2”,
“@strapi/strapi”: “^4.16.2”,
“better-sqlite3”: “8.5.0”,
“md5”: “^2.3.0”,
“pg”: “^8.11.3”,
“react”: “^18.2.0”,
“react-dom”: “^18.2.0”,
“react-router-dom”: “^5.3.4”,
“sharp”: “^0.32.5”,
“styled-components”: “^5.3.3”
},
“author”: {
“name”: “A Strapi developer”
},
“strapi”: {
“uuid”: “20e0b7f0-a399-4618-af40-72673ae39e08”
},
“engines”: {
“node”: “>=14.0.0 <=20.x.x”,
“npm”: “>=6.0.0”
},
“license”: “MIT”
}
Here is my Docker:
FROM node:18-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}
ENV APP_KEYS=randomKey
ENV API_TOKEN_SALT=randomSalt
ENV TRANSFER_TOKEN_SALT=randomToken
ENV ADMIN_JWT_SECRET=randomSecret
WORKDIR /opt/
COPY package.json ./
RUN npm config set fetch-retry-maxtimeout 600000 -g && npm install && npm update
ENV PATH /opt/node_modules/.bin:$PATH
WORKDIR /opt/app
COPY . .
RUN chown -R node:node /opt/app
USER node
RUN [“npm”, “run”, “build”]
EXPOSE 8080
ARG STRAPI_COMMAND=start
ENV STRAPI_COMMAND=${STRAPI_COMMAND}
CMD npm run $STRAPI_COMMAND
here is my bug log:
Executing task: docker logs --tail 1000 -f 9c9d41dee11596bffedfae7314aa2a4d361ef58c41f1c61696b144dfe0feb9eb
ta-io-strapi@0.1.0 develop
strapi develop
- Building build context
[INFO] Including the following ENV variables as part of the JS bundle:
- ADMIN_PATH
- STRAPI_ADMIN_BACKEND_URL
- STRAPI_TELEMETRY_DISABLED
Building build context (67ms)
- Creating admin
✘ [ERROR] Cannot start service: Host version “0.16.17” does not match binary version “0.19.2”
1 error
[ERROR] The service is no longer running
[ERROR] There seems to be an unexpected error, try again with --debug for more information
Everything run succcessfully, until today, even old branch can’t build, I have fixed it to build successfully, but can’t start container.
Please help,
Thanks