Files
speckle-server/packages/server/Dockerfile
T
Gergő Jedlicska 214db9a9bb fix(frontend container): add default value for FILE_SIZE_LIMIT_MB (#880)
this prevents breaking the existing deployments which do not provide this env variable
2022-08-04 11:59:57 +02:00

29 lines
695 B
Docker

FROM node:16.15-bullseye-slim as node
ARG NODE_ENV=production
ENV NODE_ENV=${NODE_ENV}
ARG SPECKLE_SERVER_VERSION=custom
RUN apt-get update && apt-get install -y \
tini \
fonts-dejavu-core fontconfig \
&& rm -rf /var/lib/apt/lists/*
ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.8.0/wait /wait
RUN chmod +x /wait
WORKDIR /speckle-server
COPY .yarnrc.yml .
COPY .yarn ./.yarn
COPY package.json yarn.lock ./
WORKDIR /speckle-server/packages/server
COPY packages/server/package.json .
RUN yarn workspaces focus --production
COPY packages/server .
ENV FILE_SIZE_LIMIT_MB=100
ENV SPECKLE_SERVER_VERSION=${SPECKLE_SERVER_VERSION}
CMD ["yarn", "node", "bin/www"]