26 lines
583 B
Docker
26 lines
583 B
Docker
FROM codercom/code-server:latest
|
|
|
|
# Install rclone (support for remote filesystem)
|
|
RUN sudo apt-get install -y rclone
|
|
|
|
# Other dev tools would be installed here
|
|
# RUN sudo apt-get install -y
|
|
|
|
USER coder
|
|
|
|
# Apply VS Code settings
|
|
COPY settings.json .local/share/code-server/User/settings.json
|
|
|
|
# Use bash shell
|
|
ENV SHELL=/bin/bash
|
|
|
|
# Fix permissions
|
|
RUN sudo chown -R coder:coder /home/coder/.local
|
|
|
|
# Port for railway
|
|
ENV export PORT=80
|
|
|
|
# Use our custom entrypoint script first
|
|
COPY railway-entrypoint.sh /usr/bin/railway-entrypoint.sh
|
|
ENTRYPOINT ["/usr/bin/railway-entrypoint.sh"]
|