1
0
forked from notBrad/bubo-rss

made dockerfile, etc

This commit is contained in:
Brad Ganley 2024-04-11 00:23:30 +00:00
parent 434ada0298
commit cc32c763db

26
Dockerfile Normal file
View File

@ -0,0 +1,26 @@
# Use an official Node.js runtime as a parent image
FROM node:14
# Set the working directory in the container
WORKDIR /usr/src/app
# Copy package.json and package-lock.json
COPY package*.json ./
# Install any dependencies
RUN npm install
# Bundle the source code inside the Docker container
COPY . .
# Build the project
RUN npm run build:bubo
# Install 'serve' to serve the static site
RUN npm install -g serve
# Make port 5000 available to the world outside this container
EXPOSE 5000
# Run 'serve' to serve the static site on port 5000
CMD ["serve", "-s", "public", "-l", "5000"]