mirror of
https://litchi.icu/ngc2207/judge.git
synced 2025-05-19 04:27:13 +00:00
fix: update Docker configuration for clangd services and adjust port mappings
This commit is contained in:
parent
f7f1e01b72
commit
104e66d4d0
@ -40,7 +40,7 @@ services:
|
|||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
ports:
|
ports:
|
||||||
- "3000:3000"
|
- "3000:3000"
|
||||||
- "22:22"
|
- "2222:22"
|
||||||
depends_on:
|
depends_on:
|
||||||
postgres:
|
postgres:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
@ -48,8 +48,8 @@ services:
|
|||||||
lsp-c:
|
lsp-c:
|
||||||
image: clangd:latest
|
image: clangd:latest
|
||||||
build:
|
build:
|
||||||
context: ./lsp/clangd
|
context: ./lsp
|
||||||
dockerfile: Dockerfile
|
dockerfile: clangd/Dockerfile
|
||||||
container_name: lsp-c
|
container_name: lsp-c
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
@ -58,8 +58,8 @@ services:
|
|||||||
lsp-cpp:
|
lsp-cpp:
|
||||||
image: clangd:latest
|
image: clangd:latest
|
||||||
build:
|
build:
|
||||||
context: ./lsp/clangd
|
context: ./lsp
|
||||||
dockerfile: Dockerfile
|
dockerfile: clangd/Dockerfile
|
||||||
container_name: lsp-cpp
|
container_name: lsp-cpp
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
|
@ -1,24 +1,19 @@
|
|||||||
FROM alpine:latest as builder
|
FROM alpine:3.21
|
||||||
|
|
||||||
RUN apk add --no-cache git npm
|
RUN echo "https://mirror.nju.edu.cn/alpine/v3.21/main" > /etc/apk/repositories && \
|
||||||
|
echo "https://mirror.nju.edu.cn/alpine/v3.21/community" >> /etc/apk/repositories
|
||||||
|
|
||||||
|
RUN apk add --no-cache git npm build-base clang-extra-tools nodejs
|
||||||
|
|
||||||
|
RUN npm config set registry https://registry.npmmirror.com
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
RUN git clone https://github.com/wylieconlon/jsonrpc-ws-proxy.git
|
COPY jsonrpc-ws-proxy ./jsonrpc-ws-proxy
|
||||||
|
|
||||||
WORKDIR /app/jsonrpc-ws-proxy
|
WORKDIR /app/jsonrpc-ws-proxy
|
||||||
|
|
||||||
COPY servers.yml .
|
COPY clangd/servers.yml .
|
||||||
|
|
||||||
RUN npm install && npm run prepare
|
|
||||||
|
|
||||||
FROM alpine:latest
|
|
||||||
|
|
||||||
RUN apk add --no-cache build-base clang-extra-tools nodejs
|
|
||||||
|
|
||||||
WORKDIR /app/jsonrpc-ws-proxy
|
|
||||||
|
|
||||||
COPY --from=builder /app/jsonrpc-ws-proxy .
|
|
||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user