feat: use a more up to date nitro version

This commit is contained in:
Niklas 2023-03-18 01:27:20 +01:00
parent 3b78849b23
commit bbf899ca7e
2 changed files with 7 additions and 5 deletions

View File

@ -3,6 +3,7 @@ Nitro docker is a quick-to-setup docker environment for the [nitro client](https
The default configuration can run on localhost.
**This Repository uses `ms4/dev` branch!**
**This Repository uses a [forked version](https://git.gurkengewuerz.de/nitro/nitro) of Nitro with bug-fixes and more features!**
## Requirements
- Install docker desktop (and for windows, enable WSL support) [from here](https://www.docker.com/get-started/).

View File

@ -1,16 +1,17 @@
FROM node:lts-alpine as builder
ARG BRANCH=dev
ARG BRANCH=main
WORKDIR /build
RUN apk add --no-cache git
RUN git clone --branch ${BRANCH} --recurse-submodules https://github.com/billsonnn/nitro-react.git .
RUN yarn install
RUN yarn build
RUN git clone --branch ${BRANCH} --recurse-submodules https://github.com/Gurkengewuerz/nitro.git .
RUN npm install --force
RUN npm install --save-dev nx
RUN npx nx build frontend
FROM nginx:alpine
COPY --from=builder /build/dist/ /usr/share/nginx/html/
COPY --from=builder /build/dist/apps/frontend/ /usr/share/nginx/html/