Skip to content

Commit 88d21e4

Browse files
committed
update base image to alpine
1 parent 34b7335 commit 88d21e4

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Diff for: Dockerfile

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
FROM node:13-stretch as build
1+
FROM node:14-alpine as build
22
WORKDIR /var/myrunes
33
ADD . .
4+
5+
RUN apk add git
46
RUN [ -e ${VUE_APP_API_HOST_URL} ] ||\
57
echo "VUE_APP_API_HOST_URL=${VUE_APP_API_HOST_URL}" \
68
>> .env
@@ -9,8 +11,11 @@ RUN echo "VUE_APP_VERSION=$(git describe --tags --abbrev=0)+$(git describe --tag
911
RUN npm ci &&\
1012
npm run build
1113

12-
FROM nginx:latest AS final
14+
# ----------------------------------------------------------
15+
16+
FROM nginx:mainline-alpine AS final
1317
LABEL maintainer="zekro <[email protected]>"
18+
1419
WORKDIR /app
1520
COPY --from=build /var/myrunes/dist .
1621
ADD ./config/nginx.conf /etc/nginx/conf.d/myrunes.conf

0 commit comments

Comments
 (0)