ci(Docker): try to run npm on docker.
This commit is contained in:
parent
2c8911fb78
commit
f14d27e83c
@ -15,5 +15,13 @@ services:
|
||||
volumes:
|
||||
- ./tienda_ilusion:/app/
|
||||
ports:
|
||||
- 7001:9090
|
||||
|
||||
- "7001:9090"
|
||||
frontend:
|
||||
build:
|
||||
context: ./
|
||||
dockerfile: vuetify.Dockerfile
|
||||
volumes:
|
||||
- ./tienda_ilusion/don_confiao/frontend/don-confiao:/app/
|
||||
ports:
|
||||
- "7003:3000"
|
||||
|
||||
|
13
nginx.conf
13
nginx.conf
@ -2,10 +2,17 @@ server {
|
||||
listen 80;
|
||||
server_name donconfiao.org;
|
||||
|
||||
# location /frontend {
|
||||
# alias /var/www/frontend/;
|
||||
# autoindex on;
|
||||
# }
|
||||
|
||||
location /frontend {
|
||||
alias /var/www/frontend/;
|
||||
# index index.html;
|
||||
autoindex on;
|
||||
proxy_pass http://frontend:3000/frontend;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
|
||||
location / {
|
||||
|
9
vuetify.Dockerfile
Normal file
9
vuetify.Dockerfile
Normal file
@ -0,0 +1,9 @@
|
||||
from node
|
||||
|
||||
WORKDIR /app/
|
||||
|
||||
COPY tienda_ilusion/don_confiao/frontend/don-confiao/package.json /app/
|
||||
|
||||
RUN npm install
|
||||
|
||||
CMD ["npm", "run", "dev"]
|
Loading…
Reference in New Issue
Block a user