starting point of docker vue app (not working: npm wont install)
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
COMPOSE_PROJECT_NAME=offline_timeline
|
||||
|
||||
APP_ROOT=./app
|
||||
LOG_ROOT=./log
|
||||
@@ -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"]
|
||||
@@ -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'
|
||||
@@ -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
|
||||
@@ -0,0 +1,2 @@
|
||||
set show-all-if-ambiguous on
|
||||
set completion-ignore-case on
|
||||
+1
-1
Submodule app updated: a7180743fd...206d3f769b
@@ -0,0 +1,9 @@
|
||||
version: '3.7'
|
||||
services:
|
||||
app:
|
||||
build: ./Docker/app
|
||||
volumes:
|
||||
- "${APP_ROOT}:/app"
|
||||
ports:
|
||||
- 8988:8988
|
||||
working_dir: "/app"
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 3.4 KiB |
Reference in New Issue
Block a user