first commit
This commit is contained in:
6
docker/apache2/cors.conf
Normal file
6
docker/apache2/cors.conf
Normal file
@@ -0,0 +1,6 @@
|
||||
<IfModule mod_headers.c>
|
||||
Header set Access-Control-Allow-Origin "http://localhost:5173"
|
||||
Header set Access-Control-Allow-Methods "GET, POST, OPTIONS, PUT, DELETE"
|
||||
Header set Access-Control-Allow-Headers "Content-Type, Authorization"
|
||||
Header set Access-Control-Allow-Credentials "true"
|
||||
</IfModule>
|
||||
11
docker/build.dockerfile
Normal file
11
docker/build.dockerfile
Normal file
@@ -0,0 +1,11 @@
|
||||
FROM node:latest
|
||||
|
||||
RUN apt update && apt install -y zip
|
||||
RUN mkdir -p /app
|
||||
COPY ./frontend /app/frontend
|
||||
COPY ./module /app/module
|
||||
COPY ./scripts/build.sh /app/scripts/build.sh
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
CMD ["./scripts/build.sh"]
|
||||
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
mysql_note "Creating database for tests: ${MYSQL_DATABASE}"
|
||||
docker_process_sql --database=mysql <<<"CREATE DATABASE IF NOT EXISTS \`${MYSQL_DATABASE}_tests\` ;"
|
||||
Reference in New Issue
Block a user