fix: 3v3 team match wrong problems
This commit is contained in:
+3
-9
@@ -5,12 +5,8 @@ LABEL maintainer="tankwar" \
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Install dependencies first (leverage Docker layer cache)
|
||||
COPY package.json package-lock.json* ./
|
||||
RUN npm install --omit=dev --no-audit --no-fund \
|
||||
&& npm cache clean --force
|
||||
|
||||
# Copy the rest of the source
|
||||
# Copy all source including node_modules (pre-installed locally)
|
||||
# This avoids npm install issues due to network restrictions on build nodes
|
||||
COPY . .
|
||||
|
||||
ENV NODE_ENV=production \
|
||||
@@ -19,7 +15,5 @@ ENV NODE_ENV=production \
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
# Graceful shutdown & init for PID 1
|
||||
RUN apk add --no-cache tini
|
||||
ENTRYPOINT ["/sbin/tini", "--"]
|
||||
# Use node directly (tini unavailable due to network restrictions on nodes)
|
||||
CMD ["node", "index.js"]
|
||||
Reference in New Issue
Block a user