This commit is contained in:
@ -1,11 +1,11 @@
|
||||
FROM ubuntu
|
||||
EXPOSE 8080
|
||||
EXPOSE 22
|
||||
WORKDIR /app
|
||||
WORKDIR /home/coder
|
||||
|
||||
COPY . .
|
||||
|
||||
VOLUME [ "/app/project", "/root/.ssh", "/root/.local", "/root/.config" ]
|
||||
VOLUME [ "/home/coder/project", "/root/.ssh", "/root/.local", "/root/.config" ]
|
||||
|
||||
# 运行时可以添加代理
|
||||
ARG PROXY
|
||||
@ -89,5 +89,5 @@ RUN echo "安装 code-server" && \
|
||||
npm install --global code-server --unsafe-perm
|
||||
|
||||
|
||||
ENTRYPOINT ["/app/docker-entry-point.sh"]
|
||||
ENTRYPOINT ["/home/coder/entrypoint.sh", "--bind-addr", "0.0.0.0:8080", "."]
|
||||
|
||||
|
Reference in New Issue
Block a user