first commit
This commit is contained in:
34
Dockerfile.test
Normal file
34
Dockerfile.test
Normal file
@@ -0,0 +1,34 @@
|
||||
# finish.sh Test Container
|
||||
FROM ubuntu:22.04
|
||||
|
||||
LABEL maintainer="finish contributors"
|
||||
LABEL description="Test environment for finish.sh"
|
||||
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
# Install dependencies including BATS for testing
|
||||
RUN apt-get update && \
|
||||
apt-get install -y \
|
||||
bash \
|
||||
bash-completion \
|
||||
curl \
|
||||
wget \
|
||||
jq \
|
||||
bc \
|
||||
vim \
|
||||
git \
|
||||
bats \
|
||||
&& apt-get clean && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
WORKDIR /opt/finish
|
||||
|
||||
# Copy all files
|
||||
COPY . .
|
||||
|
||||
# Make scripts executable
|
||||
RUN chmod +x finish.sh
|
||||
|
||||
# Run tests by default
|
||||
ENTRYPOINT ["bats"]
|
||||
CMD ["tests"]
|
||||
Reference in New Issue
Block a user