Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerfile for development? #97

Closed
vsoch opened this issue Nov 27, 2020 · 1 comment
Closed

Dockerfile for development? #97

vsoch opened this issue Nov 27, 2020 · 1 comment

Comments

@vsoch
Copy link

vsoch commented Nov 27, 2020

Hi! I'm looking to try this out via Docker, and I'm hoping to ask for your help for how to properly install and run the server because I keep running into bugs. My current recipe looks like the following:

FROM node:12
# docker build -t react-pdf-highlighter .

RUN mkdir -p /code
WORKDIR /code

# Install the remainder of our code.
COPY . /code
RUN npm install && \
    npm install packages/example && \
    npm install packages/react-pdf-highlighter && \
    npm install --save-dev babel-cli && \
    npm install react-scripts react worker-loader && \
    npm audit fix

EXPOSE 3000

ENTRYPOINT ["npm", "start"]

The standard npm install seems to miss many dependencies - does this lerna tool have some kind of install I am missing? I was working through various errors, but realize I probably just installed it incorrectly.

image

Thanks so much for your help! I'll open a PR with the recipe and documentation when I can get this sorted out.

@agentcooper
Copy link
Owner

Hi! You probably want to run npm run bootstrap as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants