-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (25 loc) · 890 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM node:alpine AS builder
RUN apk add git
WORKDIR /src
FROM builder AS root_builder
COPY ./minetower.github.io/package.json ./minetower.github.io/yarn.lock ./
RUN yarn install --frozen-lockfile
COPY ./minetower.github.io ./
RUN yarn build
FROM builder AS packs_builder
RUN apk add imagemagick
COPY ./packs/package.json ./packs/yarn.lock ./
RUN yarn install --frozen-lockfile
COPY ./packs ./
RUN yarn build
FROM builder AS minecraft_tweaks_builder
COPY ./minecraft-tweaks/package.json ./minecraft-tweaks/yarn.lock ./
RUN yarn install --frozen-lockfile
COPY ./minecraft-tweaks ./
RUN yarn build
FROM nginx:1.21-alpine
ARG NGINX_ROOT='/usr/share/nginx/html'
COPY --from=root_builder /src/build/ ${NGINX_ROOT}/
COPY ./assets ${NGINX_ROOT}/assets/
COPY --from=packs_builder /src/build/ ${NGINX_ROOT}/packs/
COPY --from=minecraft_tweaks_builder /src/build/ ${NGINX_ROOT}/minecraft-tweaks/