Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
IoT Platform
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IoT
IoT Platform
Merge requests
!18
Resolve "Add support to SmartDataContext API"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Add support to SmartDataContext API"
37-add-support-to-smartdatacontext-api
into
main
Overview
0
Commits
7
Changes
2
Merged
Rodrigo Gonçalves
requested to merge
37-add-support-to-smartdatacontext-api
into
main
6 months ago
Overview
0
Commits
7
Changes
2
Expand
Related to
#37 (closed)
Edited
6 months ago
by
Rodrigo Gonçalves
0
0
Merge request reports
Viewing commit
42f76a5b
Prev
Next
Show latest version
2 files
+
14
−
8
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
42f76a5b
Config for using apache to serve the SmartDataContext API
· 42f76a5b
Rodrigo Goncalves
authored
6 months ago
context/Dockerfile
+
9
−
8
Options
FROM
php:8.
1.29-zts
-bookworm
FROM
php:8.
2-apache
-bookworm
RUN
apt-get update
&&
apt-get
install
-y
\
zip unzip
\
libssl-dev
\
@@ -7,11 +7,12 @@ RUN apt-get update && apt-get install -y \
git
\
&&
pecl
install
mongodb
\
&&
docker-php-ext-enable mongodb
RUN
a2enmod rewrite
RUN
a2enmod actions
RUN
curl
-sS
https://getcomposer.org/installer | php
--
--install-dir
=
/usr/local/bin
--filename
=
composer
RUN
mkdir
/app
WORKDIR
/app
ADD
composer.* /app/
ADD
api /app/api/
ADD
index.php /app/
RUN
composer
install
CMD
["php","-S", "0.0.0.0:80"]
\ No newline at end of file
WORKDIR
/var/www/html
ADD
composer.* /var/www/html/
ADD
api /var/www/html/api/
ADD
index.php /var/www/html/
ADD
.htaccess /var/www/html/
RUN
composer
install
\ No newline at end of file
Loading