18 lines
855 B
Docker
18 lines
855 B
Docker
# Use the Dockerfile 1.2 syntax to leverage BuildKit features like cache mounts and inline mounts--temporary mounts that are only available during the build step, not at runtime.
|
|
# syntax=docker/dockerfile:1.2
|
|
|
|
FROM python:3.9-slim
|
|
|
|
# Install the necessary packages for the test environment.
|
|
RUN apt-get update && apt-get upgrade -y && apt-get install -y \
|
|
rsync
|
|
|
|
COPY --chmod=755 ./test/src/parse_yaml.sh /usr/local/bin/parse_yaml
|
|
COPY --chmod=755 ./test/src/prepare-content.sh /usr/local/bin/prepare-content
|
|
COPY ./data/products.yml /app/appdata/products.yml
|
|
|
|
WORKDIR /src
|
|
# In your docker run or exec command, you can set the prepare-content script as your entrypoint or command.
|
|
ENTRYPOINT [ "prepare-content" ]
|
|
# The default command is an empty string to pass all command line arguments to the entrypoint and allow the entrypoint to run.
|
|
CMD [ "" ] |