We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6424681 commit 1ed9a09Copy full SHA for 1ed9a09
.github/buildkitd.toml
@@ -0,0 +1,2 @@
1
+[worker.oci]
2
+ max-parallelism = 4
Dockerfile
@@ -1,16 +1,21 @@
FROM node:lts-alpine
3
+ENV NODE_ENV=production
4
+
5
EXPOSE 8000
6
7
WORKDIR /app
-COPY package.json yarn.lock index.js settings.js /app/
8
9
+# Install production dependencies using the frozen lockfile for reproducible builds
10
+COPY package.json yarn.lock ./
11
RUN set -ex; \
12
node --version; \
13
yarn --version; \
- yarn --prod; \
14
+ yarn install --production --frozen-lockfile --non-interactive; \
15
yarn cache clean
16
-COPY views /app/views
17
+# Copy application files
18
+COPY index.js settings.js ./
19
+COPY views ./views
20
-CMD ["node", "/app/index"]
21
+CMD ["node", "index.js"]
0 commit comments