ci(Docker): try to run npm on docker.
This commit is contained in:
parent
2c8911fb78
commit
f14d27e83c
@ -15,5 +15,13 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ./tienda_ilusion:/app/
|
- ./tienda_ilusion:/app/
|
||||||
ports:
|
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;
|
listen 80;
|
||||||
server_name donconfiao.org;
|
server_name donconfiao.org;
|
||||||
|
|
||||||
|
# location /frontend {
|
||||||
|
# alias /var/www/frontend/;
|
||||||
|
# autoindex on;
|
||||||
|
# }
|
||||||
|
|
||||||
location /frontend {
|
location /frontend {
|
||||||
alias /var/www/frontend/;
|
proxy_pass http://frontend:3000/frontend;
|
||||||
# index index.html;
|
proxy_set_header Host $host;
|
||||||
autoindex on;
|
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 / {
|
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