cusdis icon indicating copy to clipboard operation
cusdis copied to clipboard

Railway: Volume (VOLUME) is banned in Dockerfiles

Open UlyC opened this issue 2 years ago • 1 comments

When I deployed on the railway,throw this error

"Volume (VOLUME) is banned in Dockerfiles"

image

UlyC avatar Aug 26 '22 03:08 UlyC

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
...

Vinfall avatar Oct 09 '22 11:10 Vinfall