Skip to content

Docker file doesn't work #2

@Macfee

Description

@Macfee

modified:

FROM hub.zuole.net/library/node:20-alpine

RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories

RUN apk add --no-cache
py3-pip
py3-setuptools
python3
make
g++
sqlite-dev

RUN ln -sf /usr/bin/python3 /usr/bin/python

WORKDIR /usr/src/app

RUN npm config set registry https://mirrors.cloud.tencent.com/npm/

COPY package*.json ./

RUN npm install --timeout=600000

COPY . .

RUN mkdir -p /usr/src/app/data &&
chmod -R 777 /usr/src/app/data

EXPOSE 8888

ENV NODE_ENV=production
PORT=8888

CMD ["node", "app.js"]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions