-
Notifications
You must be signed in to change notification settings - Fork 1
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
bbe8f45
commit f03c5cd
Showing
22 changed files
with
65 additions
and
7 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,15 @@ | ||
services: | ||
frontend: | ||
build: | ||
context: frontend | ||
target: prod | ||
args: | ||
- VITE_BACKEND_URL=${VITE_BACKEND_URL} | ||
container_name: frontend | ||
volumes: | ||
- ./website:/usr/src/app/dist | ||
depends_on: | ||
- backend | ||
backend: | ||
build: | ||
context: backend |
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,14 @@ | ||
services: | ||
frontend: | ||
build: | ||
context: frontend | ||
target: dev | ||
#args: | ||
#- VITE_BACKEND_URL=${VITE_BACKEND_URL} | ||
ports: | ||
- 80:80 | ||
#depends_on: | ||
# - backend | ||
#backend: | ||
# build: | ||
# context: backend |
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 -p dev down |
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,16 @@ | ||
FROM node:latest as builder | ||
|
||
WORKDIR /usr/src/app | ||
ENV PATH /usr/src/node_modules/.bin:$PATH | ||
ARG VITE_BACKEND_URL | ||
ENV VITE_BACKEND_URL=$VITE_BACKEND_URL | ||
|
||
COPY package.json ./ | ||
RUN npm install | ||
COPY . . | ||
|
||
FROM builder as dev | ||
CMD ["npm", "run", "dev"] | ||
|
||
FROM builder as prod-builder | ||
RUN npm run build |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,18 @@ | ||
import { defineConfig } from 'vite'; | ||
import react from '@vitejs/plugin-react'; | ||
|
||
// https://vitejs.dev/config/ | ||
export default defineConfig({ | ||
base: '/', | ||
plugins: [react()], | ||
preview: { | ||
port: 80, | ||
strictPort: true, | ||
}, | ||
server: { | ||
port: 80, | ||
strictPort: true, | ||
host: true, | ||
origin: 'http://0.0.0.0: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 |
---|---|---|
@@ -0,0 +1 @@ | ||
docker compose -p dev up --build |
This file was deleted.
Oops, something went wrong.