fast failover
This commit is contained in:
20
client/dev.Dockerfile
Normal file
20
client/dev.Dockerfile
Normal file
@@ -0,0 +1,20 @@
|
||||
FROM node:20-alpine
|
||||
|
||||
RUN apk add --no-cache bash
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN npm install -g pnpm
|
||||
|
||||
ENV USER="node"
|
||||
|
||||
RUN addgroup -g 1000 $USER && \
|
||||
adduser -D -u 1000 -G $USER $USER || true
|
||||
|
||||
RUN chown -R node:node /app
|
||||
|
||||
USER node
|
||||
|
||||
EXPOSE 5173
|
||||
|
||||
CMD ["pnpm", "dev", "--host"]
|
||||
Reference in New Issue
Block a user