Remove container related files
This commit is contained in:
parent
f46bef4b33
commit
2041757f74
3 changed files with 0 additions and 49 deletions
|
@ -1,15 +0,0 @@
|
|||
server {
|
||||
listen 80;
|
||||
server_name ifsalas.xyz;
|
||||
|
||||
location / {
|
||||
root /usr/share/nginx/html;
|
||||
index index.html index.htm;
|
||||
try_files $uri $uri/ /index.html =404;
|
||||
}
|
||||
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
location = /50x.html {
|
||||
root /usr/share/nginx/html;
|
||||
}
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
Containerfile
|
||||
.containerignore
|
||||
.gitignore
|
||||
README.md
|
||||
|
||||
build
|
||||
node_modules
|
|
@ -1,27 +0,0 @@
|
|||
# ======= NODE =======
|
||||
FROM node:alpine as build
|
||||
|
||||
# Working directory (this is where the application will be inside the container).
|
||||
WORKDIR /app
|
||||
|
||||
# Copy the app to the container
|
||||
COPY . /app/
|
||||
|
||||
# Prepare the container for building react
|
||||
RUN npm install
|
||||
RUN npm run build
|
||||
|
||||
# ======= NGINX =======
|
||||
FROM nginx:alpine
|
||||
|
||||
# Setup certbot with letsencrypt
|
||||
RUN apk add certbot certbot-nginx
|
||||
|
||||
COPY --from=build /app/build /usr/share/nginx/html
|
||||
RUN rm /etc/nginx/conf.d/default.conf
|
||||
COPY .config/nginx.conf /etc/nginx/conf.d
|
||||
|
||||
# Fire up nginx
|
||||
EXPOSE 80 443
|
||||
CMD ["nginx","-g","daemon off;"]
|
||||
|
Loading…
Reference in a new issue