diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..40cb7c2 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,11 @@ +# Ignore node_modules, we'll install them in the container +node_modules +# Ignore build output, it will be generated in the container +build +# Ignore Docker files +Dockerfile +docker-compose.yml +# Ignore git folder +.git +# Ignore svelte kit files +.svelte-kit diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..2d076e6 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,40 @@ +# Use a Bun base image for the build stage +FROM oven/bun:1-alpine AS builder + +# Set the working directory +WORKDIR /app + +# Copy package files and install dependencies +COPY package.json ./ +COPY bun.lock ./ +RUN bun install + +# Copy the rest of the application source code +COPY . . + +# Build the SvelteKit application +RUN bun run build + +# Use a smaller Bun image for the production stage +FROM oven/bun:1-alpine + +# Set the working directory +WORKDIR /app + +# Set the port for the SvelteKit server +ENV PORT=5173 + +# Copy the built application from the builder stage +COPY --from=builder /app/build ./build +COPY --from=builder /app/package.json ./package.json +COPY --from=builder /app/bun.lock ./bun.lock + +# Install production dependencies +RUN bun install --production + +# Expose the port the app will run on +EXPOSE 5173 + +# The command to start the server +# The entry point is typically build/index.js for the node adapter +CMD ["bun", "build/index.js"] diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..365a1c4 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,6 @@ +services: + web: + build: . + ports: + - "5173:5173" + container_name: eits-web diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 96eedcd..31380cc 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -1,4 +1,4 @@ - @@ -11,6 +11,10 @@
+

Soluciones Integrales de Ingeniería y Tecnología

@@ -20,8 +24,8 @@ Solutions

Impulsamos el crecimiento sostenible de la industria con automatización y tecnología avanzada

@@ -48,7 +52,7 @@
- Ver todos los servicios + Ver todos los servicios
@@ -75,9 +79,39 @@ diff --git a/static/videos/factory.mp4 b/static/videos/factory.mp4 new file mode 100644 index 0000000..fb81f06 Binary files /dev/null and b/static/videos/factory.mp4 differ