|
FROM mbonea/whats-ramsey:0.0.4 |
|
|
|
|
|
RUN useradd -ms /bin/bash admin |
|
|
|
|
|
WORKDIR /usr/src/app |
|
|
|
|
|
|
|
|
|
|
|
RUN npm install --no-cache |
|
|
|
|
|
|
|
|
|
RUN apt-get update \ |
|
&& apt-get install -y wget --no-install-recommends \ |
|
&& apt-get install -y \ |
|
libnss3 \ |
|
libatk-bridge2.0-0 \ |
|
libxcomposite1 \ |
|
libxrandr2 \ |
|
libxdamage1 \ |
|
libpango-1.0-0 \ |
|
libxshmfence1 \ |
|
libgbm1 \ |
|
libasound2 \ |
|
libpangocairo-1.0-0 \ |
|
libgtk-3-0 \ |
|
libx11-xcb1 \ |
|
libx11-xcb1 \ |
|
libxkbcommon0 \ |
|
&& rm -rf /var/lib/apt/lists/* |
|
|
|
RUN npx playwright install |
|
|
|
|
|
|
|
|
|
|
|
RUN npm install -g http-server |
|
|
|
COPY --chown=admin . /usr/src/app |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
RUN chown -R admin:admin /usr/src/app |
|
RUN chmod 777 /usr/src/app |
|
USER admin |
|
|
|
|
|
|
|
EXPOSE 7860 |
|
|
|
|
|
CMD npx playwright install && npm start & http-server public -p 7860 |
|
|
|
|