Skip to content

Instantly share code, notes, and snippets.

@kdidenko
Created December 15, 2018 05:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kdidenko/6cca1debb640dc75fd9708b18a022a0d to your computer and use it in GitHub Desktop.
Save kdidenko/6cca1debb640dc75fd9708b18a022a0d to your computer and use it in GitHub Desktop.
Simple APIFY Dockerfile with extended NPM usage
FROM apify/actor-node-chrome
# Copy source code
COPY . ./
COPY src ./src
# Install default dependencies, print versions of everything
RUN npm --quiet set progress=false \
&& npm install --only=prod --no-optional \
&& echo "Installed NPM packages:" \
&& npm list \
&& echo "Node.js version:" \
&& node --version \
&& echo "NPM version:" \
&& npm --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment