mrmBot-Matrix/Dockerfile.api

18 lines
399 B
Docker
Raw Normal View History

# Docker/Kubernetes file for running the image API
FROM node:alpine
RUN apk --no-cache upgrade && apk add --no-cache imagemagick imagemagick-dev git msttcorefonts-installer python3 alpine-sdk
RUN update-ms-fonts && fc-cache -f
RUN adduser esmBot -s /bin/sh -D
WORKDIR /home/esmBot/.internal
COPY . .
RUN npm install
RUN npm run build
USER esmBot
EXPOSE 3000
ENTRYPOINT ["node", "api/index.js"]