Skip to content

A local-first personal finance app

Don’t make Dockerfile a symlink (#157)

Jed Fox184ec5f1c0bb
diff --git a/Dockerfile b/Dockerfile
deleted file mode 120000
index 216ad03b17..0000000000
--- a/Dockerfile
+++ /dev/null
@@ -1 +0,0 @@
-docker/stable-ubuntu.Dockerfile
\ No newline at end of file
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000000..3749f2c6da
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,16 @@
+FROM node:16-bullseye as base
+RUN apt-get update && apt-get install -y openssl
+WORKDIR /app
+ADD .yarn ./.yarn
+ADD yarn.lock package.json .yarnrc.yml ./
+RUN yarn workspaces focus --all --production
+
+FROM node:16-bullseye-slim as prod
+RUN apt-get update && apt-get install tini && apt-get clean -y && rm -rf /var/lib/apt/lists/*
+WORKDIR /app
+COPY --from=base /app/node_modules /app/node_modules
+ADD package.json app.js ./
+ADD src ./src
+ENTRYPOINT ["/usr/bin/tini","-g", "--"]
+EXPOSE 5006
+CMD ["node", "app.js"]