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