Cambiando directorio

This commit is contained in:
2022-09-18 05:10:08 -03:00
parent ab9d0c0b94
commit 08802a2979
4 changed files with 2 additions and 43 deletions

1
.gitignore vendored
View File

@@ -1,4 +1,5 @@
.DS_Store
src/output.css
dist/
public/
node_modules/

View File

@@ -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

View File

@@ -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";
}

View File

@@ -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"