setting up docker to ts playwright service

This commit is contained in:
Jeff Pereira
2024-07-03 11:55:39 -07:00
parent abb44bb112
commit b4292c1ea3
2 changed files with 21 additions and 2 deletions
+19
View File
@@ -0,0 +1,19 @@
FROM node:18-slim
WORKDIR /usr/src/app
COPY package*.json ./
RUN npm install
COPY . .
# Install Playwright dependencies
RUN npx playwright install --with-deps
RUN npm run build
ARG PORT
ENV PORT=${PORT}
EXPOSE ${PORT}
CMD [ "npm", "start" ]