-
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.
- Loading branch information
1 parent
9c8fba7
commit 7c4fe67
Showing
5 changed files
with
393 additions
and
472 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 @@ | ||
FROM node:20-alpine3.16 | ||
|
||
WORKDIR /app | ||
|
||
COPY package.json . | ||
COPY package-lock.json . | ||
COPY tsconfig.json . | ||
COPY ecosystem.config.js . | ||
COPY .env.production . | ||
COPY ./src ./src | ||
COPY ./openapi ./openapi | ||
|
||
RUN apk add --no-cache ffmpeg | ||
RUN apk add python3 | ||
RUN npm install pm2 -g | ||
RUN npm install | ||
RUN npm run build | ||
|
||
EXPOSE 3000 | ||
|
||
CMD ["pm2-runtime", "start", "ecosystem.config.js", "--env", "production"] |
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 @@ | ||
FROM node:20-alpine3.16 | ||
|
||
WORKDIR /app | ||
|
||
COPY package.json . | ||
COPY package-lock.json . | ||
COPY tsconfig.json . | ||
COPY ecosystem.config.js . | ||
COPY .env.development . | ||
COPY ./src ./src | ||
COPY ./openapi ./openapi | ||
|
||
RUN apk add --no-cache ffmpeg | ||
RUN apk add python3 | ||
RUN npm install pm2 -g | ||
RUN npm install | ||
RUN npm run build | ||
|
||
EXPOSE 4000 | ||
|
||
CMD ["pm2-runtime", "start", "ecosystem.config.js"] |
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,8 @@ | ||
version: '3' | ||
services: | ||
twitter: | ||
image: tuong/twitter:v0 | ||
ports: | ||
- '4000:4000' | ||
volumes: | ||
- '~/Documents/DuocEdu/NodeJs-Super/Twitter/uploads:/app/uploads' |
Oops, something went wrong.