forked from cyber-evangelists/pst_parser
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.dev
More file actions
34 lines (27 loc) · 1016 Bytes
/
Dockerfile.dev
File metadata and controls
34 lines (27 loc) · 1016 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Development Dockerfile
FROM ubuntu:20.04
# Set DEBIAN_FRONTEND to noninteractive to prevent prompts during package installation
ENV DEBIAN_FRONTEND=noninteractive
ENV PYTHONUNBUFFERED=1
# Set the working directory in the container
WORKDIR /app
# Update the package repository and install Python 3 and development tools
RUN apt-get update && apt-get install -y \
python3 \
python3-pip \
python3-dev \
pst-utils \
vim \
nano \
&& rm -rf /var/lib/apt/lists/*
# Create needed directories
RUN mkdir -p /app/output /app/target_files /app/mbox_dir
# Install Python packages needed for development/testing
RUN pip3 install pytest pytest-cov coverage
# Create a symlink to make pytest available in PATH
RUN ln -s /usr/local/bin/pytest /usr/bin/pytest
# No need to copy files as they will be mounted from host
# This allows for live code editing without rebuilding the image
# Set default command to run tests
# Can be overridden in docker-compose.dev.yml
CMD ["pytest", "-xvs", "tests/"]