Skip to content

Commit 9b7fe12

Browse files
committed
Switch away from alpine images
1 parent 2da7c14 commit 9b7fe12

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.dockerignore

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/node_modules
2+
.env
3+
package-lock.json
4+
/build
5+
.git/
6+
docs/
7+
.vscode/
8+
.github/

Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:16.18.1-alpine AS deps
1+
FROM node:16.18.1-slim AS deps
22

33
WORKDIR /app
44

@@ -10,7 +10,7 @@ COPY src ./src
1010
RUN yarn install --frozen-lockfile
1111
RUN npm run build
1212

13-
FROM node:16.18.1-alpine
13+
FROM node:16.18.1-slim
1414

1515
WORKDIR /app
1616

@@ -21,4 +21,4 @@ COPY yarn.lock ./
2121
RUN yarn install --frozen-lockfile && rm -rf /usr/local/share/.cache
2222
COPY --from=deps /app/build .
2323

24-
CMD ["node","index.js"]
24+
CMD ["node","index.js"]

0 commit comments

Comments
 (0)