Skip to content

Commit 8c1fb25

Browse files
build: 修复 alpine 权限问题
1 parent d407d39 commit 8c1fb25

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

packages/remote-control-server/Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ WORKDIR /app
55
ARG VERSION=0.1.0
66

77
COPY packages/remote-control-server/package.json ./package.json
8-
COPY bun.lock ./bun.lock
9-
RUN bun install --frozen-lockfile
8+
RUN bun install
109

1110
COPY packages/remote-control-server/src ./src
1211
RUN bun build src/index.ts --outfile=dist/server.js --target=bun \
@@ -18,7 +17,7 @@ FROM oven/bun:1-slim AS runtime
1817
ARG VERSION=0.1.0
1918
ENV RCS_VERSION=${VERSION}
2019

21-
RUN addgroup --system app && adduser --system --ingroup app app
20+
RUN addgroup -S app && adduser -S -G app app
2221

2322
WORKDIR /app
2423

0 commit comments

Comments
 (0)