Slim down Dockerfile and use npm start for consistency

This commit is contained in:
PoweredByPie 2023-06-03 11:55:56 -07:00
parent fa4e418e36
commit e79ff0950c

View File

@ -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" ]