split Dockerfile into several files, add docker-compose.yaml, add map configuration file

This commit is contained in:
2025-04-09 21:52:16 +03:00
parent 8ca9a1c385
commit d4b830096f
5 changed files with 122 additions and 0 deletions

22
Dockerfile-map Normal file
View File

@@ -0,0 +1,22 @@
# nodejs build environment
FROM alpine:latest as nodejs
WORKDIR /
RUN apk add git
RUN git clone https://gitlab.com/kzotkin/hiveemulator
RUN apk add npm
WORKDIR /hiveemulator/src/MapClient/
RUN npm install
RUN npm run build
RUN rm public/config.json
# production environment
FROM nginx:alpine
COPY --from=nodejs /hiveemulator/src/MapClient/dist/ /usr/share/nginx/html/
EXPOSE 80
ENTRYPOINT ["nginx", "-g", "daemon off;"]