Skip to content

Commit 5b52c72

Browse files
authored
fix(docker): change node image to alpine image (#149)
* fix(docker): change node image to alpine image * fix(docker): remove unnecessary files on docker image * fix(dockerignore): fix nyc_output * fix(dockerignore): add more files to ignore
1 parent 93bbbe2 commit 5b52c72

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

.dockerignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.git
2+
.github
3+
.nyc_output
4+
docs/
5+
test/
6+
reports/
7+
CHANGELOG.md
8+
.stryker-tmp
9+
stryker.log
10+
coverage.lcov
11+
node_modules/

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:latest
1+
FROM node:lts-alpine3.12
22

33
WORKDIR /usr/src/app
44

@@ -10,4 +10,4 @@ COPY . .
1010

1111
EXPOSE 3000
1212

13-
CMD [ "npm", "start" ]
13+
CMD [ "npm", "start" ]

0 commit comments

Comments
 (0)