mirror of
https://github.com/Dannecron/ich-lerne-deutsch.git
synced 2025-12-25 12:52:35 +03:00
Initial commit. Add application skeleton
This commit is contained in:
16
Dockerfile
Normal file
16
Dockerfile
Normal file
@@ -0,0 +1,16 @@
|
||||
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
|
||||
|
||||
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"]
|
||||
Reference in New Issue
Block a user