mirror of
https://github.com/Gurkengewuerz/nitro-docker.git
synced 2024-11-26 17:50:52 +01:00
feat: use a more up to date nitro version
This commit is contained in:
parent
3b78849b23
commit
bbf899ca7e
@ -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/).
|
||||
|
@ -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/
|
||||
|
Loading…
Reference in New Issue
Block a user