-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (21 loc) · 814 Bytes
/
Copy pathDockerfile
File metadata and controls
26 lines (21 loc) · 814 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM mcr.microsoft.com/playwright:v1.60.0-noble
# Install and configure locales
RUN apt-get update && apt-get install -y locales && \
sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
dpkg-reconfigure --frontend=noninteractive locales && \
update-locale LANG=en_US.UTF-8
ENV LANG=en_US.UTF-8
ENV LC_ALL=en_US.UTF-8
# Use Playwright's built-in non-root user for test execution
WORKDIR /app
COPY package-lock.json ./
COPY package.json ./
WORKDIR /app/packages/openbridge-webcomponents
COPY packages/openbridge-webcomponents/package.json ./
COPY packages/openbridge-webcomponents/*.tgz ./
RUN npm ci --ignore-scripts && \
chown -R pwuser:pwuser /app
COPY packages/openbridge-webcomponents ./
RUN chown -R pwuser:pwuser /app
USER pwuser
CMD ["npm", "run", "test-storybook"]