mirror of
https://github.com/imputnet/cobalt.git
synced 2025-07-14 01:08:27 +00:00
Slim down Dockerfile and use npm start
for consistency
This commit is contained in:
parent
fa4e418e36
commit
e79ff0950c
12
Dockerfile
12
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" ]
|
||||
|
Loading…
Reference in New Issue
Block a user