-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Age Manning <Age@AgeManning.com>
- Loading branch information
1 parent
cbc30e0
commit 4da71a9
Showing
8 changed files
with
2,867 additions
and
2,481 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,21 @@ | ||
ARG node_version=18 | ||
ARG node_image=node:${node_version} | ||
|
||
# STAGE 1: builder | ||
FROM $node_image AS builder | ||
|
||
COPY . /app/ | ||
WORKDIR /app | ||
|
||
ENV NODE_ENV=development | ||
# install (dev) deps | ||
RUN yarn | ||
|
||
ENV NODE_ENV=production | ||
# build (prod) app | ||
RUN yarn build | ||
|
||
# STAGE 2 | ||
FROM nginx:alpine AS production | ||
|
||
COPY --from=builder /app/build/ /usr/share/nginx/html/ |
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,12 @@ | ||
ARG node_version=18 | ||
ARG node_image=node:${node_version} | ||
FROM $node_image | ||
|
||
ENV NODE_ENV=development | ||
|
||
EXPOSE 5000/tcp | ||
COPY . /app/ | ||
WORKDIR /app | ||
|
||
RUN yarn install | ||
CMD ["yarn", "run", "dev"] |
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
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
This file was deleted.
Oops, something went wrong.
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