-
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.
Added dockerfile with frontend builded
- Loading branch information
1 parent
b2f4615
commit 89fe712
Showing
2 changed files
with
19 additions
and
8 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 |
---|---|---|
@@ -1,18 +1,20 @@ | ||
FROM node:22.7.0-bookworm-slim AS base | ||
FROM node:22.11.0-bookworm-slim AS base | ||
|
||
ENV GENERATE_SOURCEMAP=false | ||
ENV NODE_OPTIONS=--max_old_space_size=8192 | ||
|
||
COPY ./compose/local/react/start /start | ||
RUN sed -i 's/\r$//g' /start | ||
RUN chmod +x /start | ||
# COPY ./compose/production/react/start /start | ||
# RUN sed -i 's/\r$//g' /start | ||
# RUN chmod +x /start | ||
|
||
RUN mkdir /app && chown -R node:node /app | ||
|
||
COPY ./frontend /app | ||
WORKDIR /app | ||
|
||
USER node | ||
# USER node | ||
|
||
RUN yarn -v | ||
RUN yarn --non-interactive --ignore-optional --network-timeout 500000 | ||
RUN yarn run build | ||
CMD ["yarn", "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