trianta.dev/Dockerfile
2024-09-17 20:03:26 -05:00

24 lines
311 B
Docker

FROM nginx:latest
RUN apt-get update && apt-get install -y nodejs npm
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
WORKDIR /usr/share/nginx/html
COPY index.html .
RUN mkdir -p /usr/share/nginx/html/public
COPY src/*.css ./public
RUN cp /app/build/* ./public
EXPOSE 80