-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
36 lines (30 loc) · 1.08 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM mhart/alpine-node:14
RUN ["npm", "install", "-g", "mountebank@2.4.0", "--production"]
RUN find /usr/lib/node_modules/mountebank \
\( -name '*.md' \
-o -name '*akefile' \
-o -name appveyor.yml \
-o -name changelog \
-o -name CONTRIBUTORS \
-o -name coverage \
-o -name '.eslint*' \
-o -name example \
-o -name examples \
-o -name '*LICENSE*' \
-o -name License \
-o -name license \
-o -name man \
-o -name .npmignore \
-o -name 'README*' \
-o -name readme.markdown \
-o -name samples \
-o -name screenshots \
-o -name 'test*' \
-o -name .travis.yml \
\) -exec rm -fr {} +
# Bump maxAllowedUnauthenticatedCommands
RUN sed -i 's/maxAllowedUnauthenticatedCommands: 1000/maxAllowedUnauthenticatedCommands: 2000/' \
/usr/lib/node_modules/mountebank/src/models/smtp/smtpServer.js
FROM mhart/alpine-node:slim-14
COPY --from=0 /usr/lib/node_modules/mountebank /usr
ENTRYPOINT ["mb", "--mock"]