Commit 018018fb authored by april's avatar april
Browse files

환경설정 업데이트

parent 1e31d4b5
Pipeline #891 passed with stage
in 1 minute and 56 seconds
......@@ -18,8 +18,7 @@ RUN sed -i 's/archive.ubuntu.com/mirror.kakao.com/g' /etc/apt/sources.list; \
mv code-server-${code_version}-linux-amd64 /app; \
chmod 700 /usr/bin/entrypoint.sh /usr/bin/init.sh; \
mkdir /workspace
WORKDIR /workspace
WORKDIR /workspace
CMD entrypoint.sh
......@@ -3,4 +3,4 @@ if [ ! -f "/.init" ]; then
touch /.init
fi
/app/code-server
/app/code-server --config /workspace/code/.config/config.yaml --user-data-dir /workspace/code/user-dir --extensions-dir /workspace/code/extensions-dir
if [ ! -d "/root/.config/code-server" ]; then
mkdir /root/.config
mkdir /root/.config/code-server
if [ ! -d "/workspace/code" ]; then
mkdir /workspace/code
fi
config="/root/.config/code-server/config.yaml"
if [ ! -d "/workspace/code/.config" ]; then
mkdir /workspace/code/.config
fi
if [ ! -d "/workspace/code/user-dir" ]; then
mkdir /workspace/code/user-dir
fi
if [ ! -d "/workspace/code/extensions-dir" ]; then
mkdir /workspace/code/extensions-dir
fi
config="/workspace/code/.config/config.yaml"
if [ ! -f ${config} ]; then
touch ${config}
echo "bind-addr: 0.0.0.0:8080" >> ${config}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment