-
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.
Добавляет docker-контейнер для запуска фронтенда
- Loading branch information
1 parent
2318daa
commit fc39581
Showing
3 changed files
with
30 additions
and
0 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 |
---|---|---|
|
@@ -10,5 +10,6 @@ PGADMIN_DEFAULT_EMAIL= | |
PGADMIN_DEFAULT_PASSWORD= | ||
|
||
BACK_APP_PORT= | ||
FRONT_APP_PORT= | ||
|
||
SECRET_JWT_KEY= |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
FROM node:20.9-alpine as build | ||
|
||
WORKDIR /app | ||
|
||
ENV PATH /app/node_modules/.bin:$PATH | ||
|
||
COPY package.json ./ | ||
COPY package-lock.json ./ | ||
|
||
RUN npm ci --silent | ||
RUN npm install react-scripts@3.4.1 -g --silent | ||
|
||
COPY . /app/ | ||
|
||
RUN npm run build | ||
RUN npm install -g serve | ||
|
||
CMD serve -s build -l ${FRONT_APP_PORT} |