starting point of docker vue app (not working: npm wont install)

This commit is contained in:
2020-02-13 17:08:33 +01:00
parent f53a80eaea
commit edff8f413c
9 changed files with 54 additions and 1 deletions
+4
View File
@@ -0,0 +1,4 @@
COMPOSE_PROJECT_NAME=offline_timeline
APP_ROOT=./app
LOG_ROOT=./log
+24
View File
@@ -0,0 +1,24 @@
FROM node:lts-alpine
RUN apk update && apk --no-cache add shadow && \
usermod -u 1001 node && \
groupmod -g 1001 node
RUN find / -group 1000 -exec chgrp -h node {} \;
RUN find / -user 1000 -exec chown -h node {} \;
# RUN addgroup -g 1000 gdp && \
# adduser -h /home/gdp -D -u 1000 gdp && \
RUN adduser -u 1000 -G users -s /bin/sh -D offline
# chown -R gdp:gdp /home/gdp
USER offline
COPY ./bashrc /home/offline/.bashrc
COPY ./inputrc /home/offline/.inputrc
COPY ./entrypoint.sh /usr/local/bin
USER root
RUN chmod +x /usr/local/bin/entrypoint.sh
USER offline
CMD ["/bin/sh","/usr/local/bin/entrypoint.sh"]
+3
View File
@@ -0,0 +1,3 @@
PS1='\e[36m\e[1mNODE\e[0m:\e[90m\w\e[0m\n$ '
bind '"\e[A": history-search-backward'
bind '"\e[B": history-search-forward'
+11
View File
@@ -0,0 +1,11 @@
#!/bin/sh
cat /etc/passwd|grep 1000
echo "Npm install"
cd /app
npm install
echo "Run npm dev"
npm run dev
+2
View File
@@ -0,0 +1,2 @@
set show-all-if-ambiguous on
set completion-ignore-case on
+1 -1
Submodule app updated: a7180743fd...206d3f769b
+9
View File
@@ -0,0 +1,9 @@
version: '3.7'
services:
app:
build: ./Docker/app
volumes:
- "${APP_ROOT}:/app"
ports:
- 8988:8988
working_dir: "/app"
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB