Skip to content

best way to save what you love

experimenting with docker

wukko5636a27ff041
diff --git a/dockerfile_api b/dockerfile_api
new file mode 100644
index 00000000..60fdbec8
--- /dev/null
+++ b/dockerfile_api
@@ -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" ]
diff --git a/dockerfile_web b/dockerfile_web
new file mode 100644
index 00000000..e20460c3
--- /dev/null
+++ b/dockerfile_web
@@ -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" ]