generated from ExamProCo/aws-bootcamp-cruddur-2023
-
Notifications
You must be signed in to change notification settings - Fork 11
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
d1f5007
commit 71b72d6
Showing
3 changed files
with
48 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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM python:3.10-slim-buster | ||
|
||
WORKDIR /backend-flask | ||
|
||
COPY requirements.txt requirements.txt | ||
RUN pip3 install -r requirements.txt | ||
|
||
COPY . . | ||
|
||
ENV FLASK_ENV=development | ||
|
||
EXPOSE ${PORT} | ||
CMD [ "python3", "-m" , "flask", "run", "--host=0.0.0.0", "--port=4567"] |
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,26 @@ | ||
version: "3.8" | ||
services: | ||
backend-flask: | ||
environment: | ||
FRONTEND_URL: "https://3000-${GITPOD_WORKSPACE_ID}.${GITPOD_WORKSPACE_CLUSTER_HOST}" | ||
BACKEND_URL: "https://4567-${GITPOD_WORKSPACE_ID}.${GITPOD_WORKSPACE_CLUSTER_HOST}" | ||
build: ./backend-flask | ||
ports: | ||
- "4567:4567" | ||
volumes: | ||
- ./backend-flask:/backend-flask | ||
frontend-react-js: | ||
environment: | ||
REACT_APP_BACKEND_URL: "https://4567-${GITPOD_WORKSPACE_ID}.${GITPOD_WORKSPACE_CLUSTER_HOST}" | ||
build: ./frontend-react-js | ||
ports: | ||
- "3000:3000" | ||
volumes: | ||
- ./frontend-react-js:/frontend-react-js | ||
|
||
# the name flag is a hack to change the default prepend folder | ||
# name when outputting the image names | ||
networks: | ||
internal-network: | ||
driver: bridge | ||
name: cruddur |
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,9 @@ | ||
FROM node:16.18 | ||
|
||
ENV PORT=3000 | ||
|
||
COPY . /frontend-react-js | ||
WORKDIR /frontend-react-js | ||
RUN npm install | ||
EXPOSE ${PORT} | ||
CMD ["npm", "start"] |