Files
ich-lerne-deutsch/Dockerfile
2019-02-22 21:02:05 +07:00

17 lines
406 B
Docker

FROM node:10.15.0-alpine
RUN npm config set cache /opt/pub/.npm
RUN apk upgrade --update \
&& apk add --no-cache curl yarn git
RUN yarn global add @vue/cli@3.4.1
ARG WEB_USER_ID=33
ARG WEB_USER_NAME=www-data
RUN echo "Building for web user: id=${WEB_USER_ID} name=${WEB_USER_NAME}"
RUN adduser -D -u ${WEB_USER_ID} ${WEB_USER_NAME} || echo "Users exists"
USER ${WEB_USER_ID}
CMD ["yarn", "serve"]