1- FROM node:lts
1+ FROM fedora:latest
22
3- # Arguments
4- ARG OPENVSCODE_VERSION="1.74.0"
53# Volumes
64VOLUME /data
75
86# Ports
97# openvscode server port. Note: Runs HTTP by default
108EXPOSE 3000
11- # Dev Web Server port. Runs a self signed SSL certificate
12- EXPOSE 443
139
1410# System Environment Variables
1511ENV PATH="/opt/vscode:${PATH}"
@@ -18,17 +14,17 @@ ENV SHELL="/bin/bash"
1814
1915# User Set Environment Variables
2016# Set to false if you do not want to attempt to pull a repository on first load
21- ENV AUTOINITIALIZE=true
17+ ENV AUTOINITIALIZE=false
2218# sets a connection token for VSCode Server. https://github.com/gitpod-io/openvscode-server#securing-access-to-your-ide
23- ENV USE_CONNECTION_TOKEN=true
19+ ENV USE_CONNECTION_TOKEN=false
2420#Set to a secret to have some measure of protection for vscode. Randomized if left blank
2521ENV CONNECTION_TOKEN=
2622# Project name. Typically the same as the project in the URL
2723ENV PROJECT_NAME="headscale-ui"
2824# URL for the github/git location
2925ENV PROJECT_URL="https://github.com/gurucomputing/headscale-ui"
3026# autostart the dev command on boot?
31- ENV AUTOSTART=true
27+ ENV AUTOSTART="false"
3228# command to run in the background on startup
3329ENV DEV_COMMAND="npm run dev"
3430
@@ -49,8 +45,18 @@ RUN chmod -R 755 scripts
4945RUN /staging/scripts/1-image-build.sh
5046
5147# set to the non-root user
52- USER node
48+ USER dev-user
5349
5450WORKDIR /data
5551
56- ENTRYPOINT /bin/sh /staging/scripts/2-initialise.sh
52+ ENTRYPOINT /bin/sh /staging/scripts/2-initialise.sh#!/bin/sh
53+
54+ #----#
55+ # placeholder for testing
56+ # while true; do sleep 1; done
57+ #----#
58+
59+ # set file permissions if required
60+ if [ $(id -u) -ne $(stat -c %u /data) ]
61+ then
62+ …fi
0 commit comments