bridgemanaccessible.ca/Dockerfile
Alan Bridgeman caa2f2a161
Some checks failed
Build and deploy Main Bridgeman Accessible website to QA/Stagging (private Kubernetes cluster) / build (push) Failing after 9s
Build and deploy Main Bridgeman Accessible website to QA/Stagging (private Kubernetes cluster) / deploy (push) Has been skipped
Attempting to fix automation problems
2025-06-10 11:34:57 -05:00

29 lines
No EOL
453 B
Docker

FROM node:latest
# Create app directory
WORKDIR /usr/src/app
# Install app dependencies
COPY package*.json ./
COPY .npmrc ./
#COPY yarn.lock ./
RUN yarn install --frozen-lockfile
# Build and test
COPY tsconfig.json ./
COPY ./src ./src
COPY gulpfile.mjs ./
RUN yarn build
RUN npm run test --if-present
# Remove source files
RUN rm -r ./src
ARG DOMAIN=example.com
ENV DOMAIN=$DOMAIN
ARG PORT=3000
ENV PORT=$PORT
EXPOSE $PORT
CMD [ "yarn", "start" ]