Compare commits

..

No commits in common. "b24b59f619a453c4de4d4d5bc67421b8e71f2e20" and "266d1605d48303f7f28d0367ac1bb0a31a0909d8" have entirely different histories.

3 changed files with 8 additions and 16 deletions

View File

@ -1,21 +1,13 @@
# Usar la versión más reciente de Node.js sobre Alpine
FROM node:current-alpine
FROM alpine:3.14
RUN apk update && apk add --no-cache nodejs npm make g++
# Establecer el directorio de trabajo dentro del contenedor
WORKDIR /app
# Copiar los archivos necesarios
COPY package*.json ./
# Instalar las dependencias
RUN npm install
# Copiar el resto del código fuente
COPY . .
# Exponer el puerto que Vite utiliza (5173)
EXPOSE 5173
RUN npm install
# Comando para iniciar el servidor de desarrollo
CMD ["npm", "run", "dev"]
CMD ["npm", "run", "build"]
EXPOSE 8080

View File

@ -4,7 +4,7 @@
"version": "0.0.1",
"type": "module",
"scripts": {
"dev": "vite --host",
"dev": "vite",
"build": "tsc -b && vite build",
"preview": "vite preview"
},

View File

@ -5,7 +5,7 @@ import Navbar from "../partials/Navbar";
import Loader from "../partials/Loader";
import Api from "../helpers/Api";
import Card from "../partials/Card";
import { FaSolidLocationDot, FaSolidMapLocationDot, FaSolidWater } from "solid-icons/fa";
import { FaSolidCircleInfo, FaSolidLocationDot, FaSolidMapLocationDot, FaSolidWater } from "solid-icons/fa";
import OpenWeather from "../helpers/OpenWeather";
interface CustomParams extends Params {