Compare commits

...

3 Commits

Author SHA1 Message Date
930a844749 fix ci
All checks were successful
CI / build (push) Successful in 12s
CI / lint (push) Successful in 6s
CI / build-and-push-docker (push) Successful in 19s
2025-08-30 23:21:52 +02:00
6631101d3d fix typo in docker-compose file
All checks were successful
CI / build (push) Successful in 12s
CI / lint (push) Successful in 9s
CI / build-and-push-docker (push) Successful in 17s
2025-08-30 23:12:22 +02:00
01a8f18bae add nginx file to docker container
All checks were successful
CI / build (push) Successful in 13s
CI / lint (push) Successful in 8s
CI / build-and-push-docker (push) Successful in 20s
2025-08-30 23:04:01 +02:00
3 changed files with 38 additions and 4 deletions

View File

@@ -68,6 +68,9 @@ jobs:
script: |
cd monitor-im-flur
echo "Deploying Docker container..."
git clean -dfx
git reset --hard HEAD
git pull
docker-compose pull
docker-compose down
docker-compose up -d

View File

@@ -1,7 +1,11 @@
FROM nginx
COPY ./dist /usr/share/nginx/html
FROM oven/bun as builder
WORKDIR /app
COPY . .
RUN bun install
RUN bun run build
FROM nginx:alpine
COPY --from=builder /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/nginx.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]

27
nginx.conf Normal file
View File

@@ -0,0 +1,27 @@
worker_processes 1;
events { worker_connections 1024; }
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
expires 1y;
log_not_found off;
}
}
}