sudovanilla-website/Dockerfile
2024-05-15 12:09:16 -04:00

22 lines
No EOL
301 B
Docker

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
# Disable Keystatic
ENV SKIP_KEYSTATIC=true
# Expose Port
EXPOSE 4321
# Run
CMD node ./dist/server/entry.mjs