experimenting with docker

This commit is contained in:
wukko 2023-05-19 16:23:10 +06:00
parent 4d369170ff
commit 5636a27ff0
2 changed files with 30 additions and 0 deletions

15
dockerfile_api Normal file
View 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
View 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" ]