Refactoring
This commit is contained in:
6
.github/workflows/app.yaml
vendored
6
.github/workflows/app.yaml
vendored
@@ -34,12 +34,6 @@ jobs:
|
||||
run: |
|
||||
npm install
|
||||
|
||||
- name: Build
|
||||
working-directory: app
|
||||
run: |
|
||||
printenv
|
||||
npm run build
|
||||
|
||||
- name: Setup Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
|
||||
@@ -8,6 +8,9 @@ CMD ["node", "/api/dist/main.js"]
|
||||
|
||||
FROM base AS app
|
||||
RUN npm i -g serve
|
||||
COPY ./app/dist ./app/dist
|
||||
WORKDIR ./app
|
||||
# COPY ./app/dist ./app/dist
|
||||
COPY ./app ./app
|
||||
EXPOSE 8080
|
||||
CMD [ "serve", "-s", "app/dist", "-p", "8080" ]
|
||||
# CMD [ "serve", "-s", "app/dist", "-p", "8080" ]
|
||||
CMD ["npm", "run", "dev"]
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "app",
|
||||
"private": true,
|
||||
"version": "0.0.13",
|
||||
"version": "0.0.14",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
|
||||
Reference in New Issue
Block a user