-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c035370
commit f3aae28
Showing
15 changed files
with
12,520 additions
and
2,372 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"upcloud": "abfdf6e47a3970abf78198dc2e497f87381a89b8b4a5b9a8d5a4529e73177dbd" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# FROM node:13 | ||
|
||
# WORKDIR /usr/src/pharmacy | ||
|
||
# COPY package*.json ./ | ||
|
||
|
||
# COPY . . | ||
# RUN npm install && npm run build | ||
|
||
# EXPOSE 3000 | ||
|
||
# CMD [ "npm", "start" ] | ||
|
||
# | ||
# ---- Base Node ---- | ||
FROM ubuntu AS base | ||
|
||
ARG DEBIAN_FRONTEND=noninteractive | ||
# install node | ||
RUN apt update && apt install nodejs npm -y | ||
# set working directory | ||
WORKDIR /usr/src/pharmacy | ||
|
||
# copy project file | ||
COPY package.json . | ||
|
||
# | ||
# ---- Dependencies ---- | ||
FROM base AS dependencies | ||
# install node packages | ||
RUN npm set progress=false && npm config set depth 0 | ||
RUN npm install --only=production | ||
# copy production node_modules aside | ||
RUN cp -R node_modules prod_node_modules | ||
# install ALL node_modules, including 'devDependencies' | ||
RUN npm install | ||
|
||
# | ||
# ---- Release ---- | ||
FROM base AS release | ||
# copy production node_modules | ||
COPY --from=dependencies /usr/src/pharmacy/prod_node_modules ./node_modules | ||
# copy app sources | ||
COPY . . | ||
# expose port and define CMD | ||
EXPOSE 3000 | ||
|
||
CMD [ "npm", "start" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.