forked from TaskingAI/TaskingAI
-
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
Showing
13 changed files
with
832 additions
and
1,356 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.env | ||
.env.example |
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
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
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
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,15 @@ | ||
server { | ||
listen 80; | ||
|
||
location /api/v1/ { | ||
proxy_pass http://backend-web:8000; | ||
} | ||
|
||
location /v1/ { | ||
proxy_pass http://backend-api:8000; | ||
} | ||
|
||
location / { | ||
proxy_pass http://frontend:80; | ||
} | ||
} |
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,29 @@ | ||
FROM node:16-alpine as builder | ||
# Start with a Node.js 18.18 image as the build environment | ||
FROM node:18.18 as build-stage | ||
|
||
# Set the working directory in the Docker container | ||
WORKDIR /app | ||
ADD package.json . | ||
ADD package-lock.json . | ||
|
||
RUN npm i | ||
# Copy package.json and package-lock.json (if available) to the working directory | ||
COPY package*.json ./ | ||
|
||
ADD . . | ||
# Install dependencies defined in package.json | ||
RUN npm install | ||
|
||
# Copy the rest of your app's source code from your host to your image filesystem | ||
COPY . . | ||
|
||
# Build the application for production | ||
RUN npm run build | ||
|
||
FROM nginx:1.24 | ||
# Start with a lightweight version of Nginx on Alpine Linux | ||
FROM nginx:alpine | ||
|
||
# Copy the build artifacts from the previous stage to the Nginx server directory | ||
COPY --from=build-stage /app/dist /usr/share/nginx/html | ||
|
||
EXPOSE 8080 | ||
# Expose port 80 to the Docker host, so it can be mapped to the Docker container | ||
EXPOSE 80 | ||
|
||
COPY ./default.conf /opt/bitnami/nginx/conf/bitnami/default.conf | ||
COPY --from=builder /app/dist /usr/share/nginx/html | ||
# Start Nginx when the container is launched and keep it running | ||
CMD ["nginx", "-g", "daemon off;"] |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.