a year ago
Hey there!
I am using this GitHub repo:
https://github.com/pypiserver/pypiserver
for setting up a dedicated PyPi server so I can host my own packages and VSC to get around hosting them on the official PyPi servers. I get the Volume error:
The `VOLUME` keyword is banned in Dockerfiles. Use Railway volumes instead.
Has anyone got some advice or guidance on trying to achieve this goal with Railway?
0 Replies
a year ago
you would need to remove line 77 from the Dockerfile, then manually mount a volume to that location
Okay so I think that's worked… thank you so much! Just a quick little extra question, what would you recommend as the best way of uploading files to the volume? Would I just use some TCP proxy or is there a better way of getting files into Railway volumes?
a year ago
its a bit of a dance, the service itself would need to provide upload functionality so you would need to juggle the volume between your desired service and the filebrowser template
I don't think PyPi comes with a built-in file upload system/online browser so would it make sense to build a simple one say in Django or Flask and upload my packages through that into the Volume? That will cause PyPi server to detect a new package and thus allow the package for download?
a year ago
as mentioned, use the filebrowser template
Ah my apologies! I didn't know there was a template, okay this could definitely work :)