experimenting with docker
This commit is contained in:
parent
4d369170ff
commit
5636a27ff0
2 changed files with 30 additions and 0 deletions
15
dockerfile_api
Normal file
15
dockerfile_api
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
FROM node:18-bullseye-slim
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
RUN apt-get update
|
||||||
|
RUN apt-get install -y git
|
||||||
|
RUN rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
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/api" ]
|
15
dockerfile_web
Normal file
15
dockerfile_web
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
FROM node:18-bullseye-slim
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
RUN apt-get update
|
||||||
|
RUN apt-get install -y git
|
||||||
|
RUN rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
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/web" ]
|
Loading…
Reference in a new issue