update
Browse files- Dockerfile +2 -2
- config.yaml +0 -1
Dockerfile
CHANGED
@@ -12,8 +12,8 @@ RUN curl -fsSL https://raw.githubusercontent.com/cdr/code-server/main/install.sh
|
|
12 |
RUN --mount=type=secret,id=password,mode=0444,required=true cat /run/secrets/password > /run/passwd
|
13 |
# RUN ls /.config/ && cat /.config/code-server/config.yaml
|
14 |
COPY ./config.yaml /home/leo/.config/code-server/config.yaml
|
15 |
-
RUN sed -i 's/psaaword/`cat /run/passwd`/' /home/leo/.config/code-server/config.yaml
|
16 |
-
|
17 |
USER leo
|
18 |
ENV HOME=/home/leo \
|
19 |
PATH=/home/leo/.local/bin:$PATH
|
|
|
12 |
RUN --mount=type=secret,id=password,mode=0444,required=true cat /run/secrets/password > /run/passwd
|
13 |
# RUN ls /.config/ && cat /.config/code-server/config.yaml
|
14 |
COPY ./config.yaml /home/leo/.config/code-server/config.yaml
|
15 |
+
# RUN sed -i 's/psaaword/`cat /run/passwd`/' /home/leo/.config/code-server/config.yaml
|
16 |
+
RUN echo "password: $(cat /run/passwd)" >> /home/leo/.config/code-server/config.yaml
|
17 |
USER leo
|
18 |
ENV HOME=/home/leo \
|
19 |
PATH=/home/leo/.local/bin:$PATH
|
config.yaml
CHANGED
@@ -1,4 +1,3 @@
|
|
1 |
bind-addr: 127.0.0.1:8080
|
2 |
auth: password
|
3 |
-
password:
|
4 |
cert: false
|
|
|
1 |
bind-addr: 127.0.0.1:8080
|
2 |
auth: password
|
|
|
3 |
cert: false
|