-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (18 loc) · 813 Bytes
/
Dockerfile
File metadata and controls
24 lines (18 loc) · 813 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM node:15.3.0-buster as npm-cache
WORKDIR /srv
COPY --link package*.json ./
RUN --mount=type=cache,target=/root/.npm \
npm install
# npm install --from-lock-file
FROM npm-cache as frontend-build
COPY --link . .
RUN npm run build
FROM frontend-build as app
EXPOSE 5000/tcp
LABEL org.opensourcesanjosedistro="debian" \
org.opensourcesanjoseimage="emmigrate" \
org.opencontainers.image.source="https://github.com/codeforsanjose/e-immigrate" \
org.opencontainers.image.ref.name="emmigrate" \
org.opencontainers.image.title="E-Immigrate" \
org.opencontainers.image.description="Project New Citizen is a web application created for the Center for Employment Training Immigration and Citizenship Program (CET-ICP) in collaboration with Code for San Jose."
CMD [ "node", "./backend/index.js" ]