FROM 086679231553.dkr.ecr.us-east-1.amazonaws.com/docker-parent-images:node24 AS base

# Create app directory
WORKDIR /usr/src/app

# Bundle app source
COPY . .

USER root

# Install app dependencies
RUN yarn

USER node

EXPOSE 3000
CMD [ "yarn", "start" ]

# Build the lint and test stage
FROM base AS lint_and_test

USER root

CMD [ "./test.sh" ]
