Add Docker files
This commit is contained in:
parent
db1d3d3572
commit
a450a30411
3 changed files with 28 additions and 0 deletions
3
.dockerignore
Normal file
3
.dockerignore
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
.DS_Store
|
||||||
|
node_modules
|
||||||
|
dist
|
19
Dockerfile
Normal file
19
Dockerfile
Normal 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
6
docker-compose.yml
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
services:
|
||||||
|
blackclip:
|
||||||
|
image: docker.io/library/link
|
||||||
|
restart: unless-stopped
|
||||||
|
ports:
|
||||||
|
- 5522:4321
|
Loading…
Add table
Reference in a new issue