FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Ackee/Dockerfile at master · codesharpdev/Ackee · GitHub
codesharpdev
/
Ackee
Public
forked from
electerious/Ackee
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
Ackee
/
Dockerfile
Copy path
More file actions
More file actions
Latest commit
History
History
History
34 lines (21 loc) · 875 Bytes
Breadcrumbs
Ackee
/
Dockerfile
Copy path
File metadata and controls
34 lines (21 loc) · 875 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
#
Start with first build stage
FROM
node:14-alpine AS build
WORKDIR
/srv/app/
#
Add dependencies first so that Docker can use the cache as long as the dependencies stay unchanged
COPY
package.json yarn.lock /srv/app/
RUN
yarn install --production --frozen-lockfile --network-timeout 120000
#
Copy source after the dependency step as it's more likely that the source changes
COPY
build.js /srv/app/
COPY
src /srv/app/src
COPY
dist /srv/app/dist
#
Start with second build stage
FROM
node:14-alpine
EXPOSE
3000
WORKDIR
/srv/app/
#
Copy the source from the build stage to the second stage
COPY
--from=build /srv/app/ /srv/app/
#
Run healthcheck against MongoDB, server and API.
#
Wait a bit before start to ensure the `yarn build` is done.
HEALTHCHECK
--interval=1m --timeout=45s --start-period=45s CMD [
"/srv/app/src/healthcheck.js"
]
#
Start Ackee
CMD
yarn start
Back
|
FazBrowse Home
|
New Git URL