Compare commits
No commits in common. "b24b59f619a453c4de4d4d5bc67421b8e71f2e20" and "266d1605d48303f7f28d0367ac1bb0a31a0909d8" have entirely different histories.
b24b59f619
...
266d1605d4
20
Dockerfile
20
Dockerfile
@ -1,21 +1,13 @@
|
|||||||
# Usar la versión más reciente de Node.js sobre Alpine
|
FROM alpine:3.14
|
||||||
FROM node:current-alpine
|
|
||||||
|
RUN apk update && apk add --no-cache nodejs npm make g++
|
||||||
|
|
||||||
# Establecer el directorio de trabajo dentro del contenedor
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Copiar los archivos necesarios
|
|
||||||
COPY package*.json ./
|
|
||||||
|
|
||||||
# Instalar las dependencias
|
|
||||||
RUN npm install
|
|
||||||
|
|
||||||
# Copiar el resto del código fuente
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Exponer el puerto que Vite utiliza (5173)
|
RUN npm install
|
||||||
EXPOSE 5173
|
|
||||||
|
|
||||||
# Comando para iniciar el servidor de desarrollo
|
CMD ["npm", "run", "build"]
|
||||||
CMD ["npm", "run", "dev"]
|
|
||||||
|
|
||||||
|
EXPOSE 8080
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite --host",
|
"dev": "vite",
|
||||||
"build": "tsc -b && vite build",
|
"build": "tsc -b && vite build",
|
||||||
"preview": "vite preview"
|
"preview": "vite preview"
|
||||||
},
|
},
|
||||||
|
@ -5,7 +5,7 @@ import Navbar from "../partials/Navbar";
|
|||||||
import Loader from "../partials/Loader";
|
import Loader from "../partials/Loader";
|
||||||
import Api from "../helpers/Api";
|
import Api from "../helpers/Api";
|
||||||
import Card from "../partials/Card";
|
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";
|
import OpenWeather from "../helpers/OpenWeather";
|
||||||
|
|
||||||
interface CustomParams extends Params {
|
interface CustomParams extends Params {
|
||||||
|
Loading…
Reference in New Issue
Block a user