mirror of
https://github.com/imputnet/cobalt.git
synced 2025-01-28 09:18:27 +00:00
Use Alpine as the base image
This commit is contained in:
parent
e48100c54d
commit
e540964b7b
12
Dockerfile
12
Dockerfile
|
@ -1,14 +1,16 @@
|
|||
FROM node:18-bullseye-slim
|
||||
FROM node:18-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y git
|
||||
RUN rm -rf /var/lib/apt/lists/*
|
||||
RUN apk update \
|
||||
&& apk add --no-cache git
|
||||
|
||||
COPY package*.json ./
|
||||
RUN npm install
|
||||
|
||||
RUN git clone -n https://github.com/wukko/cobalt.git --depth 1 && mv cobalt/.git ./ && rm -rf cobalt
|
||||
RUN git clone -n https://github.com/wukko/cobalt.git --depth 1 \
|
||||
&& mv cobalt/.git ./ \
|
||||
&& rm -rf cobalt
|
||||
|
||||
COPY . .
|
||||
EXPOSE 9000
|
||||
|
|
Loading…
Reference in a new issue