Refactoring

This commit is contained in:
2025-01-20 18:02:29 -06:00
parent b5b2cbce6f
commit 986d23b2f6
3 changed files with 12 additions and 7 deletions

View File

@@ -34,6 +34,11 @@ jobs:
run: |
npm install
- name: Build
working-directory: app
run: |
npm run build
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3

View File

@@ -8,11 +8,11 @@ CMD ["node", "/api/dist/main.js"]
FROM base AS app
RUN npm i -g serve
WORKDIR ./app
# COPY ./app/dist ./app/dist
COPY ./app .
RUN npm install
# WORKDIR ./app
COPY ./app/dist ./app/dist
# COPY ./app .
# RUN npm install
EXPOSE 8080
# CMD [ "serve", "-s", "app/dist", "-p", "8080" ]
CMD ["npm", "run", "dev"]
CMD [ "serve", "-s", "app/dist", "-p", "8080" ]
# CMD ["npm", "run", "dev"]
# ENTRYPOINT ["tail", "-f", "/dev/null"]

View File

@@ -1,7 +1,7 @@
{
"name": "app",
"private": true,
"version": "0.0.16",
"version": "0.0.17",
"type": "module",
"scripts": {
"dev": "vite",