Dockerfile for playwright
This commit is contained in:
29
Dockerfile.code.playwright
Normal file
29
Dockerfile.code.playwright
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
FROM mcr.microsoft.com/playwright:v1.54.0-noble
|
||||||
|
|
||||||
|
ENV PATH="/venv/bin:/root/.local/bin:$PATH"
|
||||||
|
|
||||||
|
RUN curl -LsSf https://astral.sh/uv/install.sh | sh && \
|
||||||
|
uv python install 3.12 && \
|
||||||
|
uv venv /venv
|
||||||
|
|
||||||
|
COPY requirements.txt .
|
||||||
|
|
||||||
|
RUN . /venv/bin/activate && \
|
||||||
|
uv pip install -r requirements.txt && \
|
||||||
|
uv pip install polars-lts-cpu
|
||||||
|
|
||||||
|
RUN . /venv/bin/activate && \
|
||||||
|
uv pip install playwright && \
|
||||||
|
playwright install
|
||||||
|
|
||||||
|
ARG APP
|
||||||
|
ENV APP=$APP
|
||||||
|
ENV PYTHONPATH=/apps/$APP/src/:/shared/src/
|
||||||
|
WORKDIR /opt/dagster/home
|
||||||
|
|
||||||
|
# Run dagster gRPC server on port 4000
|
||||||
|
EXPOSE 4000
|
||||||
|
|
||||||
|
# CMD allows this to be overridden from run launchers or executors that want
|
||||||
|
# to run other commands against your repository
|
||||||
|
CMD ["dagster", "code-server", "start", "-h", "0.0.0.0", "-p", "4000", "-m", "definitions"]
|
||||||
Reference in New Issue
Block a user