Skip to content

Commit

Permalink
docker: add test token and data
Browse files Browse the repository at this point in the history
  • Loading branch information
ofaurax committed Jun 7, 2024
1 parent d474642 commit 76e8967
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
FROM php:7.4-apache
COPY . /var/www/html/

RUN sed -i 's/80/1912/' /etc/apache2/ports.conf
RUN sed -i 's/80/1912/' /etc/apache2/sites-enabled/000-default.conf
RUN sed -i 's/80/1912/' /etc/apache2/ports.conf && sed -i 's/80/1912/' /etc/apache2/sites-enabled/000-default.conf

# Add test token
RUN touch private/tokens/20350515-testtoken.txt

# Add test dirs
RUN mkdir -p private/docs/A001/ && mkdir -p private/docs/G057/cors
RUN touch private/docs/G057/clarinette1.pdf
RUN touch private/docs/G057/cors/cor1.pdf && touch private/docs/G057/cors/cor2.pdf

0 comments on commit 76e8967

Please sign in to comment.