aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile.bun
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-12-04 22:29:23 -0800
committerAdam Soltys <[email protected]>2023-12-05 08:23:38 -0800
commite98ca84881152632a2e06e4376408c204644f3ad (patch)
tree3d461bb56b7cbce9d65931816c9c61eb09e55c73 /Dockerfile.bun
parentece2e424fb00a5480b1cf0630ee6c237ec1c170a (diff)
downloadcoinos-server-e98ca84881152632a2e06e4376408c204644f3ad.tar.gz
coinos-server-e98ca84881152632a2e06e4376408c204644f3ad.zip
stop sending rates
Diffstat (limited to 'Dockerfile.bun')
-rw-r--r--Dockerfile.bun20
1 files changed, 20 insertions, 0 deletions
diff --git a/Dockerfile.bun b/Dockerfile.bun
new file mode 100644
index 00000000..d1cedb68
--- /dev/null
+++ b/Dockerfile.bun
@@ -0,0 +1,20 @@
+FROM node:21
+
+ARG NODE_ENV=production
+ENV NODE_ENV $NODE_ENV
+
+RUN apt update
+RUN apt install gcc make pkg-config automake libpcre2-dev libtool git ffmpeg curl zip -y
+RUN curl -fsSL https://bun.sh/install | bash
+
+COPY . /app
+WORKDIR /app
+
+RUN NODE_ENV=development NODE_OPTIONS="" /root/.bun/bin/bun i
+WORKDIR /app/node_modules/bcrypt
+RUN npx node-pre-gyp install --fallback-to-build
+WORKDIR /app/node_modules/sharp
+RUN npm run install
+WORKDIR /app
+
+CMD ["node", "index.js"]