chore: update dockerfile
This commit is contained in:
parent
b469cb63c7
commit
a7384a8126
1 changed files with 5 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
||||||
# Use an official Node.js 6.9.1 runtime as a parent image
|
# Use debian:bookworm-slim runtime as a parent image
|
||||||
FROM debian:bookworm-slim
|
FROM debian:bookworm-slim
|
||||||
|
|
||||||
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
|
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
|
||||||
|
@ -31,13 +31,14 @@ WORKDIR /usr/src/app
|
||||||
# Copy package.json and package-lock.json (if available)
|
# Copy package.json and package-lock.json (if available)
|
||||||
COPY package*.json index.js ./
|
COPY package*.json index.js ./
|
||||||
|
|
||||||
|
# Install production dependencies
|
||||||
|
# RUN npm install --production
|
||||||
|
RUN npm i --audit=false --bin-links=false --fund=false --production
|
||||||
|
|
||||||
COPY app/ ./app/
|
COPY app/ ./app/
|
||||||
|
|
||||||
COPY config.json.sample config.json
|
COPY config.json.sample config.json
|
||||||
|
|
||||||
# Install production dependencies
|
|
||||||
RUN npm install --production
|
|
||||||
|
|
||||||
# Set environment variables
|
# Set environment variables
|
||||||
ENV PORT=2222
|
ENV PORT=2222
|
||||||
ENV DEBUG=
|
ENV DEBUG=
|
||||||
|
|
Loading…
Reference in a new issue