Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Railway: Volume (VOLUME) is banned in Dockerfiles #215

Open
UlyC opened this issue Aug 26, 2022 · 1 comment
Open

Railway: Volume (VOLUME) is banned in Dockerfiles #215

UlyC opened this issue Aug 26, 2022 · 1 comment

Comments

@UlyC
Copy link

UlyC commented Aug 26, 2022

When I deployed on the railway,throw this error

"Volume (VOLUME) is banned in Dockerfiles"

image

@UlyC UlyC changed the title Volume (VOLUME) is banned in Dockerfiles Railway: Volume (VOLUME) is banned in Dockerfiles Aug 26, 2022
@Vinfall
Copy link

Vinfall commented Oct 9, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants