1c5964fc41
* Adds hadolint as pre-commit step * Addresses all hadolint comments * Use noninteractive apt-get frontend and clean after install * dockerfile RUN statements are consolidated to prevent additional layers * installed packages have pinned versions * build(circleci): use speckle pre-commit runner with built-in hadolint * Integrate pre-commit with husky bash script for git pre-commit hooks * catches errors in bash * if pre-commit is installed, it is run * if optional additional binaries are installed, further pre-commit steps are run * Update README with revised developer instructions * Adds a pre-commit yarn script
29 lines
673 B
Docker
29 lines
673 B
Docker
FROM node:16.15-bullseye-slim as node
|
|
|
|
RUN apt-get update && \
|
|
DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
|
--no-install-recommends \
|
|
tini=0.19.0-1 \
|
|
&& apt-get clean \
|
|
&& 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
|
|
|
|
ARG NODE_ENV=production
|
|
ENV NODE_ENV=${NODE_ENV}
|
|
|
|
WORKDIR /speckle-server
|
|
|
|
COPY .yarnrc.yml .
|
|
COPY .yarn ./.yarn
|
|
COPY package.json yarn.lock ./
|
|
|
|
WORKDIR /speckle-server/packages/webhook-service
|
|
COPY packages/webhook-service/package.json .
|
|
RUN yarn workspaces focus --production
|
|
|
|
COPY packages/webhook-service/src .
|
|
|
|
CMD ["yarn", "node", "main.js"]
|