Feature/33 api fails when no pilots or logbook entries #35

Merged
noahspannbauer merged 85 commits from feature/33-api-fails-when-no-pilots-or-logbook-entries into main 2025-02-02 18:24:48 -05:00
3 changed files with 12 additions and 7 deletions
Showing only changes of commit 986d23b2f6 - Show all commits

View File

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

View File

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

View File

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