1
0
Fork 0
mirror of https://github.com/TheTaz25/denis.ergin.git synced 2025-07-06 13:18:49 +00:00

build: update dependencies

This commit is contained in:
Denis Ergin 2024-09-17 17:42:50 +02:00
parent bc86ed1584
commit 9d54629dc5
4 changed files with 924 additions and 802 deletions

4
.dockerignore Normal file
View file

@ -0,0 +1,4 @@
node_modules
.astro
.vscode
.dist

17
Dockerfile Normal file
View file

@ -0,0 +1,17 @@
FROM node:18-alpine AS base
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable
COPY . /app
WORKDIR /app
FROM base AS build
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
RUN pnpm build
FROM nginx:1.27.1
COPY nginx.conf /etc/nginx/nginx.conf
COPY --from=build /app/dist /usr/share/nginx/html
EXPOSE 8080

56
nginx.conf Normal file
View file

@ -0,0 +1,56 @@
worker_processes 2;
pid /var/run/nginx.pid;
error_log /var/log/nginx.error_log info;
events {
worker_connections 2000;
}
http {
include mime.types;
default_type text/html;
log_format main '$remote_addr - $remote_user [$time_local] '
'"$request" $status $bytes_sent '
'"$http_referer" "$http_user_agent" '
'"$gzip_ratio"';
log_format download '$remote_addr - $remote_user [$time_local] '
'"$request" $status $bytes_sent '
'"$http_referer" "$http_user_agent" '
'"$http_range" "$sent_http_content_range"';
client_header_timeout 3m;
client_body_timeout 3m;
send_timeout 3m;
client_header_buffer_size 1k;
large_client_header_buffers 4 4k;
gzip on;
gzip_min_length 1100;
gzip_buffers 4 8k;
gzip_types text/plain;
output_buffers 1 32k;
postpone_output 1460;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 75 20;
server {
listen 8080;
server_name denis-ergin.de;
root /usr/share/nginx/html;
access_log /var/log/nginx.access_log main;
location / {
}
}
}

1649
pnpm-lock.yaml generated

File diff suppressed because it is too large Load diff