Skip to content

Commit

Permalink
Fix dockerfile (#28)
Browse files Browse the repository at this point in the history
* fix dockerfile

* inc version
  • Loading branch information
mxsnq authored May 25, 2023
1 parent 9b27034 commit 31be376
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@ RUN mkdir -p /app
COPY . /app/
WORKDIR /app
ENV NODE_PATH=/app/node_modules
RUN npm install

# Add user so we don't need --no-sandbox.
RUN groupadd -r pptruser && useradd -r -g pptruser -G audio,video pptruser \
&& mkdir -p /home/pptruser/Downloads \
&& chown -R pptruser:pptruser /home/pptruser \
&& chown -R pptruser:pptruser /app/node_modules
&& chown -R pptruser:pptruser /app

USER pptruser

RUN yarn install

EXPOSE 3000
CMD npm start
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "scrapy-puppeteer-service",
"version": "0.1.0",
"version": "0.1.1",
"private": true,
"scripts": {
"start": "node ./bin/www"
Expand Down

0 comments on commit 31be376

Please sign in to comment.