Skip to content

Commit 31be376

Browse files
authored
Fix dockerfile (#28)
* fix dockerfile * inc version
1 parent 9b27034 commit 31be376

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Dockerfile

+4-3
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,15 @@ RUN mkdir -p /app
1616
COPY . /app/
1717
WORKDIR /app
1818
ENV NODE_PATH=/app/node_modules
19-
RUN npm install
2019

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

2725
USER pptruser
26+
27+
RUN yarn install
28+
2829
EXPOSE 3000
2930
CMD npm start

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "scrapy-puppeteer-service",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"private": true,
55
"scripts": {
66
"start": "node ./bin/www"

0 commit comments

Comments
 (0)