diff --git a/DOCKERFILE b/DOCKERFILE deleted file mode 100644 index 2c1b87f..0000000 --- a/DOCKERFILE +++ /dev/null @@ -1,25 +0,0 @@ -# Stage 1: Build with pnpm -FROM node:20-alpine AS builder - -WORKDIR /app - -# Install pnpm globally -RUN corepack enable && corepack prepare pnpm@latest --activate - -COPY package.json pnpm-lock.yaml ./ -RUN pnpm install - -COPY . . -RUN pnpm build - -# Stage 2: Serve with nginx -FROM nginx:alpine - -# Copy built files to nginx's web directory -COPY --from=builder /app/dist /usr/share/nginx/html - -# Expose port 3087 -EXPOSE 3087 - -# Change default nginx config to use port 3087 -RUN sed -i 's/80;/3087;/' /etc/nginx/conf.d/default.conf \ No newline at end of file diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..226f4a6 --- /dev/null +++ b/nginx.conf @@ -0,0 +1,11 @@ +server { + listen 8097; + server_name localhost; + + root /usr/share/nginx/html; + index index.html; + + location / { + try_files $uri $uri/ /index.html; + } +} \ No newline at end of file