Compare commits
2 Commits
266d1605d4
...
b24b59f619
Author | SHA1 | Date | |
---|---|---|---|
b24b59f619 | |||
a551d70bd4 |
20
Dockerfile
20
Dockerfile
@ -1,13 +1,21 @@
|
|||||||
FROM alpine:3.14
|
# Usar la versión más reciente de Node.js sobre Alpine
|
||||||
|
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
|
||||||
|
|
||||||
COPY . .
|
# Copiar los archivos necesarios
|
||||||
|
COPY package*.json ./
|
||||||
|
|
||||||
|
# Instalar las dependencias
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
|
||||||
CMD ["npm", "run", "build"]
|
# Copiar el resto del código fuente
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
# Exponer el puerto que Vite utiliza (5173)
|
||||||
|
EXPOSE 5173
|
||||||
|
|
||||||
|
# Comando para iniciar el servidor de desarrollo
|
||||||
|
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",
|
"dev": "vite --host",
|
||||||
"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 { FaSolidCircleInfo, FaSolidLocationDot, FaSolidMapLocationDot, FaSolidWater } from "solid-icons/fa";
|
import { 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