bridgemanaccessible.ca/Dockerfile
Alan Bridgeman 65b7aa9d4c
Some checks failed
Build and deploy Main Bridgeman Accessible website to QA/Stagging (private Kubernetes cluster) / build (push) Failing after 49s
Build and deploy Main Bridgeman Accessible website to QA/Stagging (private Kubernetes cluster) / deploy (push) Has been skipped
Had commented out the wrong line in the Dockerfile
2025-06-10 11:52:34 -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" ]