djyde / cusdis

lightweight, privacy-friendly alternative to Disqus.
https://cusdis.com
GNU General Public License v3.0
2.63k stars 230 forks source link

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

Open UlyC opened 2 years ago

UlyC commented 2 years ago

When I deployed on the railway,throw this error

"Volume (VOLUME) is banned in Dockerfiles"

image

Vinfall commented 2 years ago

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