-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #91 from Darkzarich/from-npm-to-pnpm
Moving from npm to pnpm
- Loading branch information
Showing
263 changed files
with
8,058 additions
and
27,857 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,13 @@ | ||
node_modules | ||
dist | ||
npm-debug.log | ||
.DS_Store | ||
.env | ||
.git | ||
.gitignore | ||
stylelint.config.js | ||
playwright.config.js | ||
tests | ||
test-results | ||
playwright-report | ||
**/uploads/* |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
node_modules | ||
.env | ||
.env |
File renamed without changes.
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,30 @@ | ||
FROM node:20.16.0-slim AS base | ||
ENV PNPM_HOME="/pnpm" | ||
ENV PATH="$PNPM_HOME:$PATH" | ||
RUN corepack enable | ||
|
||
FROM base AS build | ||
WORKDIR /usr/src/app | ||
COPY . . | ||
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile --config.ignore-scripts=true | ||
RUN pnpm -r --if-present build | ||
RUN pnpm deploy --filter "@smiler/frontend" --prod /prod/frontend | ||
RUN pnpm deploy --filter "@smiler/backend" --prod /prod/backend | ||
|
||
FROM base AS backend | ||
COPY --from=build /prod/backend /prod/backend | ||
WORKDIR /prod/backend | ||
RUN chown -R node:node /prod/backend | ||
USER node | ||
CMD [ "pnpm", "start" ] | ||
|
||
FROM nginxinc/nginx-unprivileged:alpine3.19-slim AS frontend | ||
WORKDIR /usr/share/nginx/html | ||
COPY --from=build /prod/frontend/dist /prod/frontend/change-api-url.sh ./ | ||
COPY --from=build /prod/frontend/nginx.conf /etc/nginx/conf.d/default.conf | ||
USER root | ||
RUN chown -R nginx:nginx /usr/share/nginx/html | ||
USER nginx | ||
EXPOSE 80 | ||
# Replacing Frontend API URL before running NGNIX | ||
CMD . ./change-api-url.sh && nginx -g "daemon off;" |
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.
Oops, something went wrong.