Add Docker files

This commit is contained in:
Korbs 2024-06-17 17:22:22 -04:00
parent db1d3d3572
commit a450a30411
3 changed files with 28 additions and 0 deletions

3
.dockerignore Normal file
View file

@ -0,0 +1,3 @@
.DS_Store
node_modules
dist

19
Dockerfile Normal file
View file

@ -0,0 +1,19 @@
FROM node:lts AS runtime
WORKDIR /app
# Copy site to Docker image
COPY . .
# Install packages
RUN npm install
RUN npm run build
# Set website host and port
ENV HOST=0.0.0.0
ENV PORT=4321
# Expose Port
EXPOSE 4321
# Run
CMD node ./dist/server/entry.mjs

6
docker-compose.yml Normal file
View file

@ -0,0 +1,6 @@
services:
blackclip:
image: docker.io/library/link
restart: unless-stopped
ports:
- 5522:4321