From e79ff0950c26db5f48083c65220934736109a35e Mon Sep 17 00:00:00 2001 From: PoweredByPie Date: Sat, 3 Jun 2023 11:55:56 -0700 Subject: [PATCH] Slim down Dockerfile and use `npm start` for consistency --- Dockerfile | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index b3064281..94052553 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,15 +1,11 @@ -FROM node:18-bullseye-slim +FROM node:19-alpine WORKDIR /app -RUN apt-get update -RUN apt-get install -y git -RUN rm -rf /var/lib/apt/lists/* +RUN apk add --no-cache git -COPY package*.json ./ +COPY package*.json . RUN npm install -RUN git clone -n https://github.com/wukko/cobalt.git --depth 1 && mv cobalt/.git ./ && rm -rf cobalt - COPY . . EXPOSE 9000 -CMD [ "node", "src/cobalt" ] +CMD [ "npm", "start" ]