15 lines
314 B
Docker
15 lines
314 B
Docker
FROM node:22-alpine
|
|
WORKDIR /app
|
|
RUN corepack enable
|
|
COPY package.json yarn.lock ./
|
|
RUN apk add --no-cache build-base python3
|
|
RUN ln -sf python3 /usr/bin/python
|
|
RUN python3 -m ensurepip
|
|
RUN pip3 install --no-cache --upgrade pip setuptools
|
|
RUN yarn install
|
|
COPY . .
|
|
|
|
ENV PORT=80
|
|
EXPOSE 80
|
|
CMD ["node", "index.mjs"]
|