Skip to content

Commit

Permalink
Serve built files with Nginx (#27)
Browse files Browse the repository at this point in the history
* Remove dist folder

* serve built files with nginx
  • Loading branch information
akeamc authored Jan 29, 2025
1 parent 6f70d00 commit 86b31e6
Show file tree
Hide file tree
Showing 29 changed files with 41 additions and 755 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy_farad.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

env:
REGISTRY: ghcr.io
DOCKERFILE: .devcontainer/Dockerfile
DOCKERFILE: Dockerfile
IMAGE_NAME: ${{ github.repository }}

jobs:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules/
dist
19 changes: 19 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM node:20 AS vite

WORKDIR /app

COPY ./package*.json ./

RUN npm ci

COPY . .

RUN npm run build

FROM nginx:alpine

COPY nginx.conf /etc/nginx/conf.d/default.conf

COPY --from=vite /app/dist /usr/share/nginx/html

CMD ["nginx", "-g", "daemon off;"]
Binary file removed dist/ENGELSKA Price information FARAD 2025.pdf
Binary file not shown.
Binary file removed dist/SVENSKA Prisinformation FARAD 2025.pdf
Binary file not shown.
Binary file removed dist/assets/FARAD-logga-CK9NF2QM.png
Binary file not shown.
Binary file removed dist/assets/algorithma-ClbUZyn0.png
Binary file not shown.
Binary file removed dist/assets/axis-LNpX8U6H.png
Binary file not shown.
Binary file removed dist/assets/ericsson-BRDwJFP-.png
Binary file not shown.
Binary file removed dist/assets/handsome_farad-KIBQmIqH.jpg
Binary file not shown.
Binary file removed dist/assets/iaeste-Vllkpwv5.png
Binary file not shown.
Binary file removed dist/assets/iflogo-BBwCLM-V.png
Binary file not shown.
1 change: 0 additions & 1 deletion dist/assets/index-DBqSP1E_.css

This file was deleted.

Loading

0 comments on commit 86b31e6

Please sign in to comment.