forked from 17thshard/roshar-map
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (18 loc) · 667 Bytes
/
Dockerfile
File metadata and controls
25 lines (18 loc) · 667 Bytes
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
# build stage
FROM node:16-alpine as build-stage
ARG PUBLIC_URL=/
RUN apk add --no-cache autoconf automake libtool make tiff jpeg zlib zlib-dev pkgconf nasm file gcc g++ musl-dev python3 git
WORKDIR /app
COPY package.json yarn.lock /app/
RUN yarn install
COPY babel.config.js vue.config.js README.md /app/
COPY ./bin /app/bin
COPY ./build/loaders /app/build/loaders
COPY ./public /app/public
COPY ./translations /app/translations
COPY ./src /app/src
RUN yarn run validateTranslations && VUE_APP_PUBLIC_URL=${PUBLIC_URL} yarn run build
FROM nginx:stable-alpine
RUN mkdir /app
COPY --from=build-stage /app/dist/release /app
COPY nginx.conf /etc/nginx/nginx.conf