-
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
5 changed files
with
38 additions
and
2 deletions.
There are no files selected for viewing
Empty file.
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,23 @@ | ||
FROM node:20 AS builder | ||
ARG oauth_server | ||
ARG client_id | ||
ARG api_base | ||
ARG redirect_url | ||
|
||
WORKDIR /app | ||
COPY package.json package-lock.json ./ | ||
RUN npm ci | ||
|
||
COPY . . | ||
ENV VITE_OAUTH_SERVER=$oauth_server | ||
ENV VITE_CLIENT_ID=$client_id | ||
ENV VITE_API_BASE=$api_base | ||
ENV VITE_REDIRECT_URL=$redirect_url | ||
RUN npm run build | ||
|
||
FROM nginx:stable-alpine | ||
COPY --from=builder /app/dist /usr/share/nginx/html | ||
COPY nginx.conf /etc/nginx/conf.d/default.conf | ||
|
||
EXPOSE 80 | ||
CMD ["nginx", "-g", "daemon off;"] |
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 @@ | ||
server { | ||
listen 80; | ||
server_name localhost; | ||
location / { | ||
root /usr/share/nginx/html; | ||
index index.html; | ||
try_files $uri $uri/ /index.html; | ||
} | ||
} |
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 |
---|---|---|
|
@@ -8,5 +8,8 @@ export default defineConfig({ | |
alias: { | ||
$lib: '/src/lib' | ||
} | ||
}, | ||
build: { | ||
target: 'esnext' | ||
} | ||
}) |