mirror of
https://github.com/FranP-code/Open-Telegram-to-Notion-Website.git
synced 2025-10-13 00:42:53 +00:00
adding Dockerfile 2, electric boogaloo
This commit is contained in:
4
.dockerignore
Normal file
4
.dockerignore
Normal file
@@ -0,0 +1,4 @@
|
||||
.git
|
||||
.DS_Store
|
||||
.env
|
||||
node_modules
|
||||
11
Dockerfile
11
Dockerfile
@@ -1,4 +1,4 @@
|
||||
FROM alpine:latest
|
||||
FROM alpine:latest as build
|
||||
|
||||
RUN apk add --update nodejs npm
|
||||
RUN npm install --global yarn
|
||||
@@ -8,7 +8,10 @@ COPY [".", "/usr/src"]
|
||||
WORKDIR "/usr/src"
|
||||
|
||||
RUN yarn
|
||||
RUN yarn build
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
CMD ["yarn", "start"]
|
||||
FROM nginx:1.23.1-alpine
|
||||
EXPOSE 80
|
||||
COPY ./docker/nginx/conf.d/default.conf /etc/nginx/conf.d/default.conf
|
||||
COPY --from=build /usr/src/build /usr/share/nginx/html
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
7
docker-compose.yml
Normal file
7
docker-compose.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
website:
|
||||
build: .
|
||||
ports:
|
||||
- "80:80"
|
||||
9
docker/nginx/conf.d/default.conf
Normal file
9
docker/nginx/conf.d/default.conf
Normal file
@@ -0,0 +1,9 @@
|
||||
server {
|
||||
listen 80;
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
}
|
||||
@@ -75,7 +75,7 @@ function Auth() {
|
||||
})
|
||||
}}
|
||||
>
|
||||
{permanentCode || 'lorem ipsum'}
|
||||
{permanentCode}
|
||||
</code>
|
||||
</div>
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user