Cambiando directorio
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,4 +1,5 @@
|
||||
.DS_Store
|
||||
src/output.css
|
||||
dist/
|
||||
public/
|
||||
node_modules/
|
||||
|
||||
18
Dockerfile
18
Dockerfile
@@ -1,18 +0,0 @@
|
||||
FROM node:16 as builder
|
||||
|
||||
WORKDIR /usr/app/src
|
||||
|
||||
COPY package.json .
|
||||
COPY package-lock.json .
|
||||
|
||||
RUN npm install
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN npm run build
|
||||
|
||||
##################################################################
|
||||
|
||||
FROM nginx:latest as deployer
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
COPY --from=builder /usr/app/src/dist /usr/share/nginx/html
|
||||
24
nginx.conf
24
nginx.conf
@@ -1,24 +0,0 @@
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
server_name localhost;
|
||||
|
||||
location / {
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
}
|
||||
|
||||
error_page 404 /404.html;
|
||||
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
location = /50x.html {
|
||||
root /usr/share/nginx/html;
|
||||
}
|
||||
|
||||
gzip on;
|
||||
gzip_types *;
|
||||
gzip_static on;
|
||||
|
||||
expires 7d;
|
||||
add_header Cache-Control "public";
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"scripts": {
|
||||
"watch": "tailwindcss -i ./src/input.css -o ./src/style.css --watch",
|
||||
"build": "mkdir -p dist; tailwindcss -i ./src/input.css -o ./dist/style.css; cp ./src/*.html ./src/*.png dist/"
|
||||
"build": "mkdir -p public; tailwindcss -i ./src/input.css -o ./public/style.css; cp ./src/*.html ./src/*.png public/"
|
||||
},
|
||||
"devDependencies": {
|
||||
"tailwindcss": "^3.1.8"
|
||||
|
||||
Reference in New Issue
Block a user