sudovanilla-website/Dockerfile

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