-
Notifications
You must be signed in to change notification settings - Fork 1
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
4d18c34
commit bb4b07f
Showing
3 changed files
with
12 additions
and
10 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
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,10 +1,15 @@ | ||
FROM node:18-alpine | ||
FROM node:lts-alpine | ||
WORKDIR /app | ||
|
||
COPY package*.json ./ | ||
RUN npm ci | ||
|
||
ARG BASE_PATH | ||
|
||
COPY . . | ||
ENV NODE_ENV=production | ||
ENV BASE_PATH=${BASE_PATH} | ||
RUN npm run build | ||
|
||
EXPOSE 3000 | ||
CMD ["node", "build"] |
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,7 +1,9 @@ | ||
services: | ||
app: | ||
image: tnfshcec/web | ||
build: . | ||
build: | ||
context: . | ||
args: | ||
- BASE_PATH= | ||
ports: | ||
- 3000:3000 | ||
volumes: | ||
|