-
Notifications
You must be signed in to change notification settings - Fork 508
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
ead802c
commit f86eec0
Showing
23 changed files
with
281 additions
and
1 deletion.
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,19 @@ | ||
FROM frontend-mini-challenges-shared-assets AS shared-assets | ||
FROM frontend-mini-challenges-shared-data AS shared-data | ||
FROM frontend-mini-challenges-shared-styles AS shared-styles | ||
|
||
FROM node:22 AS root | ||
|
||
WORKDIR /app | ||
|
||
COPY --from=shared-assets /shared/assets /app/shared/assets | ||
|
||
COPY --from=shared-data /shared/data /app/shared/data | ||
|
||
COPY --from=shared-styles /shared/styles /app/shared/styles | ||
|
||
COPY package*.json . | ||
|
||
COPY .npmrc . | ||
|
||
COPY tsconfig.json . |
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,4 @@ | ||
node_modules | ||
dist | ||
build | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM frontend-mini-challenges-root AS root | ||
|
||
FROM node:22 | ||
|
||
COPY --from=root /app /app | ||
|
||
WORKDIR /app/apps/angular | ||
|
||
COPY package*.json . | ||
|
||
WORKDIR /app | ||
|
||
RUN npm install | ||
|
||
WORKDIR /app/apps/angular | ||
|
||
COPY . . | ||
|
||
EXPOSE 6015 | ||
|
||
CMD [ "npm", "run", "dev" ] |
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,4 @@ | ||
node_modules | ||
dist | ||
build | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM frontend-mini-challenges-root AS root | ||
|
||
FROM node:22 | ||
|
||
COPY --from=root /app /app | ||
|
||
WORKDIR /app/apps/css | ||
|
||
COPY package*.json . | ||
|
||
WORKDIR /app | ||
|
||
RUN npm install | ||
|
||
WORKDIR /app/apps/css | ||
|
||
COPY . . | ||
|
||
EXPOSE 6011 | ||
|
||
CMD [ "npm", "run", "dev" ] |
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,4 @@ | ||
node_modules | ||
dist | ||
build | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM frontend-mini-challenges-root AS root | ||
|
||
FROM node:22 | ||
|
||
COPY --from=root /app /app | ||
|
||
WORKDIR /app/apps/host | ||
|
||
COPY package*.json . | ||
|
||
WORKDIR /app | ||
|
||
RUN npm install | ||
|
||
WORKDIR /app/apps/host | ||
|
||
COPY . . | ||
|
||
EXPOSE 6010 | ||
|
||
CMD [ "npm", "run", "dev" ] |
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,4 @@ | ||
node_modules | ||
dist | ||
build | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM frontend-mini-challenges-root AS root | ||
|
||
FROM node:22 | ||
|
||
COPY --from=root /app /app | ||
|
||
WORKDIR /app/apps/javascript | ||
|
||
COPY package*.json . | ||
|
||
WORKDIR /app | ||
|
||
RUN npm install | ||
|
||
WORKDIR /app/apps/javascript | ||
|
||
COPY . . | ||
|
||
EXPOSE 6012 | ||
|
||
CMD [ "npm", "run", "dev" ] |
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,4 @@ | ||
node_modules | ||
dist | ||
build | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM frontend-mini-challenges-root AS root | ||
|
||
FROM node:22 | ||
|
||
COPY --from=root /app /app | ||
|
||
WORKDIR /app/apps/react | ||
|
||
COPY package*.json . | ||
|
||
WORKDIR /app | ||
|
||
RUN npm install | ||
|
||
WORKDIR /app/apps/react | ||
|
||
COPY . . | ||
|
||
EXPOSE 6013 | ||
|
||
CMD [ "npm", "run", "dev" ] |
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,4 @@ | ||
node_modules | ||
dist | ||
build | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM frontend-mini-challenges-root AS root | ||
|
||
FROM node:22 | ||
|
||
COPY --from=root /app /app | ||
|
||
WORKDIR /app/apps/vue | ||
|
||
COPY package*.json . | ||
|
||
WORKDIR /app | ||
|
||
RUN npm install | ||
|
||
WORKDIR /app/apps/vue | ||
|
||
COPY . . | ||
|
||
EXPOSE 6014 | ||
|
||
CMD [ "npm", "run", "dev" ] |
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,84 @@ | ||
services: | ||
shared-assets: | ||
build: ./shared/assets | ||
container_name: shared-assets | ||
|
||
shared-data: | ||
build: ./shared/data | ||
container_name: shared-data | ||
|
||
shared-styles: | ||
build: ./shared/styles | ||
container_name: shared-styles | ||
|
||
root: | ||
build: ./ | ||
container_name: root | ||
depends_on: | ||
- shared-assets | ||
- shared-data | ||
- shared-styles | ||
|
||
host: | ||
build: ./apps/host | ||
container_name: host | ||
ports: | ||
- 6010:6010 | ||
env_file: | ||
- ./docker-env/.env | ||
stdin_open: true | ||
tty: true | ||
depends_on: | ||
- root | ||
|
||
css: | ||
build: ./apps/css | ||
container_name: css | ||
ports: | ||
- 6011:6011 | ||
env_file: | ||
- ./docker-env/.env | ||
depends_on: | ||
- root | ||
|
||
javascript: | ||
build: ./apps/javascript | ||
container_name: javascript | ||
ports: | ||
- 6012:6012 | ||
env_file: | ||
- ./docker-env/.env | ||
depends_on: | ||
- root | ||
|
||
react: | ||
build: ./apps/react | ||
container_name: react | ||
ports: | ||
- 6013:6013 | ||
stdin_open: true | ||
tty: true | ||
env_file: | ||
- ./docker-env/.env | ||
depends_on: | ||
- root | ||
|
||
vue: | ||
build: ./apps/vue | ||
container_name: vue | ||
ports: | ||
- 6014:6014 | ||
env_file: | ||
- ./docker-env/.env | ||
depends_on: | ||
- root | ||
|
||
angular: | ||
build: ./apps/angular | ||
container_name: angular | ||
ports: | ||
- 6015:6015 | ||
env_file: | ||
- ./docker-env/.env | ||
depends_on: | ||
- root |
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,7 @@ | ||
VITE_PATH=frontend-mini-challenges | ||
VITE_HOST_URL=http://localhost:6010/ | ||
VITE_CSS_APP_URL=http://localhost:6011/ | ||
VITE_JS_APP_URL=http://localhost:6012/ | ||
VITE_REACT_APP_URL=http://localhost:6013/ | ||
VITE_VUE_APP_URL=http://localhost:6014/ | ||
VITE_NG_APP_URL=http://localhost:6015/ |
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,5 @@ | ||
FROM node:22 | ||
|
||
WORKDIR /shared/assets | ||
|
||
COPY . . |
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,5 @@ | ||
FROM node:22 | ||
|
||
WORKDIR /shared/data | ||
|
||
COPY . . |
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,5 @@ | ||
FROM node:22 | ||
|
||
WORKDIR /shared/styles | ||
|
||
COPY . . |