Implemented basic Vue.js frontend (#222)
Co-authored-by: Adam Bem <adam.bem@zoho.eu> Co-authored-by: widlam <mikolaj.widla@gmail.com> Reviewed-on: #222 Reviewed-by: Mikolaj Widla <widlam@noreply.example.com>
This commit is contained in:
		| @@ -1,20 +1,24 @@ | ||||
| FROM nginx:stable-alpine | ||||
| FROM node:latest as build-stage | ||||
| WORKDIR /app | ||||
| COPY package*.json ./ | ||||
| RUN npm install | ||||
| COPY ./ . | ||||
| RUN npm run build | ||||
|  | ||||
|  | ||||
|  | ||||
| FROM nginx:stable-alpine as production-stage | ||||
| RUN mkdir /app | ||||
|  | ||||
| RUN apk add --no-cache tzdata | ||||
| ENV TZ Europe/Warsaw | ||||
|  | ||||
| COPY ./tools/ /usr/share/nginx/html/tools/ | ||||
| COPY ./lawful/ /usr/share/nginx/html/lawful/ | ||||
| COPY ./assets/ /usr/share/nginx/html/assets/ | ||||
| COPY ./index.html /usr/share/nginx/html | ||||
| COPY --from=build-stage /app/dist /usr/share/nginx/html | ||||
| COPY ./nginx.conf /etc/nginx/conf.d/default.conf | ||||
|  | ||||
| RUN mkdir -p /scripts | ||||
| COPY insert_version.sh /scripts/ | ||||
| WORKDIR /scripts | ||||
|  | ||||
| RUN chmod +x insert_version.sh | ||||
| RUN ./insert_version.sh | ||||
|  | ||||
|  | ||||
| EXPOSE 80 | ||||
| EXPOSE 443 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user