File size: 563 Bytes
817a062
60dfa0b
817a062
60dfa0b
 
817a062
60dfa0b
817a062
60dfa0b
817a062
 
60dfa0b
47a5cf9
 
 
 
817a062
60dfa0b
 
5bae267
60dfa0b
817a062
8f927f2
0ea32e8
60dfa0b
 
 
817a062
 
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
27
28
29
30
FROM apify/actor-node-playwright-chrome:20

# Install Bun locally (non-root, Apify-safe)
RUN curl -fsSL https://bun.sh/install | bash

ENV PATH="/home/myuser/.bun/bin:$PATH"

WORKDIR /home/myuser

# Copy everything INCLUDING dist/
COPY --chown=myuser . ./

ENV PUPPETEER_SKIP_DOWNLOAD="true"
ENV PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD="1"
ENV PLAYWRIGHT_BROWSERS_PATH="0"

# Install production deps only
RUN bun install --production

# ENV APP_ENV=prod

ENV NODE_ENV=production

ENV PORT=7860

EXPOSE 7860

# Run prebuilt output
CMD ["bun", "run", "start:prod:tsdown"]