-
Notifications
You must be signed in to change notification settings - Fork 6
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
8b47fb6
commit 03b41e9
Showing
21 changed files
with
100 additions
and
244 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,13 +1,31 @@ | ||
FROM node:16 | ||
FROM node:20-alpine as frontend-builder | ||
|
||
RUN apk app update && apk upgrade && \ | ||
apk add --no-cache bash git openssh | ||
|
||
WORKDIR /app | ||
COPY . . | ||
WORKDIR /app/backend | ||
RUN npm ci | ||
WORKDIR /app/frontend | ||
RUN npm ci | ||
|
||
COPY ./frontend/ . | ||
|
||
RUN npm install --silent | ||
|
||
RUN npm install react-scripts@3.4.1 -g --silent | ||
|
||
RUN npm run build | ||
|
||
|
||
|
||
FROM node:20-alpine | ||
|
||
RUN apk update && apk upgrade && \ | ||
apk add --no-cache bash git openssh | ||
|
||
WORKDIR /app | ||
RUN sh ./build.sh | ||
WORKDIR /app/backend | ||
EXPOSE 8080 | ||
CMD ["node", "app.js"] | ||
|
||
COPY ./backend/ . | ||
COPY --from=frontend-builder /app/build ./build | ||
|
||
RUN npm ci | ||
|
||
EXPOSE 4200 | ||
CMD ["node", "app.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
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 @@ | ||
node_modules |
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,17 +1,15 @@ | ||
ENV=dev | ||
CORS_ORIGIN=http://localhost:3000 | ||
CORS_ORIGIN=http://0.0.0.0:3000 | ||
PORT=4200 | ||
BASE_URL=http://localhost:4200 | ||
BASE_URL=http://0.0.0.0:4200 | ||
UPLOAD_DIR="./public/videos" | ||
HOST=localhost | ||
NODE_ENV=dev | ||
HOST=0.0.0.0 | ||
RAZORPAY_KEY_ID=optional | ||
RAZORPAY_KEY_SECRET=optional | ||
SENDGRID_KEY=optional | ||
SESSION_KEY=_abcd | ||
SESSION_SECRET=1234 | ||
DB_USER=root | ||
DB_PASS=pwd | ||
DB_HOST=localhost | ||
DB_HOST=db | ||
DB=animeApp | ||
DB_PORT=3306 |
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,12 +1,15 @@ | ||
FROM node:16 | ||
FROM node:20-alpine | ||
|
||
RUN apk update && apk upgrade && \ | ||
apk add --no-cache bash git openssh | ||
|
||
WORKDIR /app | ||
|
||
COPY . . | ||
|
||
RUN npm ci | ||
|
||
EXPOSE 8080 | ||
EXPOSE 4200 | ||
|
||
CMD ["node", "app.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
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 |
---|---|---|
|
@@ -50,6 +50,6 @@ | |
"ws": "^7.5.9" | ||
}, | ||
"engines": { | ||
"node": "14.x" | ||
"node": "20.x" | ||
} | ||
} |
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.7" | ||
services: | ||
app: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
|
||
|
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,12 @@ | ||
version: "3.7" | ||
services: | ||
app: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
ports: | ||
- "4200:4200" | ||
environment: | ||
NODE_ENV: production | ||
ENV: production | ||
|
This file was deleted.
Oops, something went wrong.
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 @@ | ||
node_modules |
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,23 +1,9 @@ | ||
REACT_APP_BASE_URL=http://192.168.2.7:4200/ | ||
REACT_APP_BASE_URL=http://localhost:4200/ | ||
REACT_APP_API_KEY=Kp4mJvZ7XDluaVsDkKIchQVIuYWIJo3l | ||
REACT_APP_SERVER_URL=http://192.168.2.7:4200/ | ||
REACT_APP_WEBSOCKET_URL=ws://192.168.2.7:4200 | ||
REACT_APP_SERVER_URL=http://localhost:4200/ | ||
REACT_APP_WEBSOCKET_URL=ws://localhost:4200 | ||
REACT_PRIVATE_KEY=123 | ||
REACT_APP_TINY_API_KEY=l1ogtgyej2icbacskxgja5mh74iygkxad8bmprn8qz5k0s7k | ||
REACT_APP_HCAPTCHA_SITE_KEY=10000000-ffff-ffff-ffff-000000000001 | ||
PORT=3000 | ||
PUBLIC_URL=https://dev.animei.tv/ | ||
INLINE_RUNTIME_CHUNK=false | ||
|
||
|
||
REACT_APP_BASE_URL=http://animeistag.net/ | ||
REACT_APP_API_KEY=Kp4mJvZ7XDluaVsDkKIchQVIuYWIJo3l | ||
REACT_APP_SERVER_URL=http://animeistag.net/ | ||
REACT_APP_WEBSOCKET_URL=ws://animeistag.net | ||
REACT_PRIVATE_KEY=123 | ||
REACT_APP_TINY_API_KEY=l1ogtgyej2icbacskxgja5mh74iygkxad8bmprn8qz5k0s7k | ||
REACT_APP_HCAPTCHA_SITE_KEY=5f9da22f-a8bc-482b-9a0f-a29f06ef875c | ||
PORT=3000 | ||
PUBLIC_URL=http://animeistag.net/ | ||
INLINE_RUNTIME_CHUNK=false | ||
|
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,13 +1,9 @@ | ||
FROM node:16 | ||
FROM node:20-alpine | ||
WORKDIR /app | ||
COPY . . | ||
WORKDIR /app/backend | ||
RUN npm install | ||
WORKDIR /app/frontent | ||
RUN npm install | ||
|
||
WORKDIR /app | ||
RUN sh ./build.sh | ||
WORKDIR /app/backend | ||
EXPOSE 8080 | ||
CMD ["node", "app.js"] | ||
RUN npm install --silent | ||
RUN npm install react-scripts@3.4.1 -g --silent | ||
|
||
EXPOSE 3000 | ||
CMD ["npm", "start"] |
This file was deleted.
Oops, something went wrong.
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 @@ | ||
docker compose -f docker-compose.local.yaml -f docker-compose.override.yaml up -d |
Oops, something went wrong.