Attempting to get local and remote repos back in sync

This commit is contained in:
Alan Bridgeman 2025-06-10 08:15:24 -05:00
parent ba3978fffb
commit 1497d2d8dc
47 changed files with 5106 additions and 2539 deletions

View file

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