mirror of
https://codeberg.org/pluja/kycnot.me
synced 2024-10-01 01:05:59 -04:00
29 lines
1.0 KiB
Docker
29 lines
1.0 KiB
Docker
|
# Specify the base Docker image. You can read more about
|
||
|
# the available images at https://crawlee.dev/docs/guides/docker-images
|
||
|
# You can also use any other image from Docker Hub.
|
||
|
FROM apify/actor-node-playwright-chrome:18
|
||
|
|
||
|
# Copy just package.json and package-lock.json
|
||
|
# to speed up the build using Docker layer cache.
|
||
|
COPY --chown=myuser package*.json ./
|
||
|
|
||
|
# Install NPM packages, skip optional and development dependencies to
|
||
|
# keep the image small. Avoid logging too much and print the dependency
|
||
|
# tree for debugging
|
||
|
RUN npm --quiet set progress=false \
|
||
|
&& npm install --omit=dev --omit=optional \
|
||
|
&& echo "Installed NPM packages:" \
|
||
|
&& (npm list --omit=dev --all || true) \
|
||
|
&& echo "Node.js version:" \
|
||
|
&& node --version \
|
||
|
&& echo "NPM version:" \
|
||
|
&& npm --version
|
||
|
|
||
|
# Next, copy the remaining files and directories with the source code.
|
||
|
# Since we do this after NPM install, quick build will be really fast
|
||
|
# for most source file changes.
|
||
|
COPY --chown=myuser . ./
|
||
|
|
||
|
|
||
|
# Run the image.
|
||
|
CMD node index.js
|