split Dockerfile into several files, add docker-compose.yaml, add map configuration file
This commit is contained in:
22
Dockerfile-map
Normal file
22
Dockerfile-map
Normal 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;"]
|
||||
Reference in New Issue
Block a user