mirror of
https://github.com/imputnet/cobalt.git
synced 2025-07-16 10:18:28 +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
|
WORKDIR /app
|
||||||
|
|
||||||
RUN apt-get update
|
RUN apk add --no-cache git
|
||||||
RUN apt-get install -y git
|
|
||||||
RUN rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
COPY package*.json ./
|
COPY package*.json .
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
|
||||||
RUN git clone -n https://github.com/wukko/cobalt.git --depth 1 && mv cobalt/.git ./ && rm -rf cobalt
|
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
EXPOSE 9000
|
EXPOSE 9000
|
||||||
CMD [ "node", "src/cobalt" ]
|
CMD [ "npm", "start" ]
|
||||||
|
Loading…
Reference in New Issue
Block a user