Skip to content

An error "Cannot GET /" happened when i run drawdb-server using docker locally #1

Closed
@Xuquansheng

Description

@Xuquansheng

Hi,
Below is my Dockerfile

root@app:~/drawdb-server# more Dockerfile
FROM node:20

Create a working directory

WORKDIR /app

Install dependencies

COPY . .
RUN npm install

ENV CLIENT_URL=http://localhost:5173
ENV EMAIL_PASS=very-secret-email-password
ENV EMAIL_REPORT=[email protected]
ENV EMAIL_USER=[email protected]
ENV PORT=5000

Expose the port that the application will run on

EXPOSE 5000

Start the application

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions