portfolio/Dockerfile
Tobias Brummer 75f4febcf9
Some checks failed
Docker / build (push) Failing after 5s
Initial Commit
2025-05-18 23:51:19 +02:00

15 lines
334 B
Docker

FROM alpine:latest
RUN apk update && apk upgrade
RUN apk add bash nginx nodejs npm git
COPY src/nginx.conf /etc/nginx/http.d/default.conf
RUN mkdir /app
WORKDIR /app
RUN git clone https://git.lycaknight.de/lycaknight/portfolio.git /app
RUN npm install && npm run build
CMD ["/bin/bash", "-c", "nginx -g 'daemon off;'"]
EXPOSE 80