18 lines
No EOL
399 B
Docker
18 lines
No EOL
399 B
Docker
# 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"] |