cusdis
cusdis copied to clipboard
Railway: Volume (VOLUME) is banned in Dockerfiles
When I deployed on the railway,throw this error
"Volume (VOLUME) is banned in Dockerfiles"
You can manually edit Makefile to temporarily fix this, but tbh I don't know what side-effect it may have.
...
# ↓ comment this line
#VOLUME [ "/data" ]
...
...
RUN npm install -g pnpm
# ↑ add this line
RUN yarn install --frozen-lockfile && npx browserslist@latest --update-db
RUN npm run build:without-migrate
...