trianta.dev/Dockerfile

27 lines
371 B
Docker
Raw Permalink Normal View History

2024-09-17 18:43:39 -05:00
FROM nginx:latest
2024-09-17 02:30:55 -05:00
2024-11-09 04:37:30 -06:00
RUN apt-get update && apt-get install -y nodejs npm netcat-openbsd
2024-09-17 18:40:58 -05:00
2024-09-17 02:30:55 -05:00
WORKDIR /app
COPY package*.json ./
RUN npm install
2024-09-17 19:49:49 -05:00
COPY . .
2024-09-17 19:20:32 -05:00
RUN npm run build
2024-09-17 19:49:49 -05:00
WORKDIR /usr/share/nginx/html
COPY index.html .
COPY default.css .
2024-12-10 01:31:36 -06:00
COPY pages/ .
2024-09-17 19:49:49 -05:00
RUN mkdir -p /usr/share/nginx/html/public
2024-09-17 02:30:55 -05:00
RUN cp /app/build/* ./public
2024-09-17 02:30:55 -05:00
2024-11-09 04:37:30 -06:00
HEALTHCHECK CMD nc -z 127.0.0.1 80
2024-09-17 19:09:54 -05:00
EXPOSE 80