27 lines
824 B
Docker
27 lines
824 B
Docker
FROM arm64v8/node:latest
|
|
|
|
RUN apt update
|
|
RUN apt upgrade -y
|
|
RUN apt install nano
|
|
|
|
RUN git clone https://github.com/gpxstudio/gpx.studio.git gpxstudio
|
|
WORKDIR /gpxstudio/gpx
|
|
RUN npm install
|
|
RUN npm run build
|
|
WORKDIR /gpxstudio/website
|
|
COPY .env /gpxstudio/website
|
|
COPY ./favicon /gpxstudio/website/static
|
|
COPY icon /gpxstudio/website
|
|
#COPY package.json /gpxstudio/website
|
|
RUN sed -i 's/vite dev/vite dev --host 0.0.0.0 --port 8111/g' package.json
|
|
RUN sed -i 's/vite preview/vite preview --host 0.0.0.0 --port 8111/g' package.json
|
|
RUN sed -i 's/routing.gpx.studio/brouter.patachina.it/g' ./src/lib/components/toolbar/tools/routing/Routing.ts
|
|
RUN sed -i '/link rel/r icon' src/app.html
|
|
RUN npm install
|
|
RUN npm run build
|
|
#RUN npm run preview
|
|
#WORKDIR /
|
|
#COPY start.sh start.sh
|
|
CMD ["npm","run","preview"]
|
|
|
|
#ENTRYPOINT /bin/bash
|