Skip to content

Commit

Permalink
passed to dockerized self hosted
Browse files Browse the repository at this point in the history
  • Loading branch information
gianlucalauro committed Oct 3, 2024
1 parent 735af50 commit 40b116c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This file is the main docker file configurations

# Official Node JS runtime as a parent image
FROM node:10.16.0-alpine
FROM node:16-alpine

# Set the working directory to ./app
WORKDIR /app
Expand All @@ -16,14 +16,11 @@ RUN apk add --no-cache git
# Install any needed packages
RUN npm install

# Audit fix npm packages
RUN npm audit fix

# Bundle app source
COPY . /app

# Make port 3000 available to the world outside this container
EXPOSE 3000

# Run app.js when the container launches
CMD ["npm", "start"]
CMD ["npm", "start"]
17 changes: 17 additions & 0 deletions nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
server {
listen 80;
server_name localhost;

location / {
root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri /index.html;
}

error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}


}

0 comments on commit 40b116c

Please sign in to comment.