Skip to content

Commit 2ef19f8

Browse files
committed
finalize taildwindcss and dockerizine the app
1 parent ecf6a14 commit 2ef19f8

File tree

5 files changed

+32
-0
lines changed

5 files changed

+32
-0
lines changed

.dockerignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.git
2+
node_modules

Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM nginx:alpine
2+
COPY /build /usr/share/nginx/html
3+
COPY nginx.conf /etc/nginx/conf.d/default.conf
4+
EXPOSE 80
5+
ENTRYPOINT ["nginx", "-g", "daemon off;"]

docker-compose.yml

Whitespace-only changes.

nginx.conf

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
server {
2+
listen 80;
3+
server_name localhost;
4+
#charset koi8-r;
5+
#access_log /var/log/nginx/host.access.log main;
6+
7+
location / {
8+
root /usr/share/nginx/html;
9+
index index.html index.htm;
10+
try_files $uri /index.html;
11+
}
12+
13+
#error_page 404 /404.html;
14+
15+
# redirect server error pages to the static page /50x.html
16+
#
17+
error_page 500 502 503 504 /50x.html;
18+
location = /50x.html {
19+
root /usr/share/nginx/html;
20+
}
21+
}

postcss.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module.exports = {
2+
plugins: [require("tailwindcss"), require("autoprefixer")],
3+
};
4+

0 commit comments

Comments
 (0)