Skip to content

Commit

Permalink
adding possibility to easy building and lounching of rokita in docker…
Browse files Browse the repository at this point in the history
… container
  • Loading branch information
Sarverott committed Oct 25, 2024
1 parent 3aa5bae commit f1fbf00
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM alpine:3.17

RUN apk update && apk upgrade
RUN apk add php composer --no-cache

COPY ./app /app

COPY ./composer.json /composer.json
COPY ./config.json /config.json

EXPOSE 8000

WORKDIR /

CMD ["composer", "careless-serve"]
20 changes: 19 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,24 @@
],
"require": {},
"scripts": {
"run-server": "php -S localhost:8000 -t app/"
"local-serve": [
"echo ### WARNING: this is localhost limited server (non-public) ###",
"php -S localhost:8000 -t app/"
],
"careless-serve": [
"echo ### IP ADDRESS ###",
"ip a",
"echo ### SERVER START ###",
"php -S 0.0.0.0:8000 -t app/"
],
"build-dock": [
"echo '### ROKITA's DOCKER CONTAINER BUILDING ###'",
"docker build . -t rokita"
],
"run-dock": [
"echo '### ROKITA's DOCKER CONTAINER LOUNCH ###'",
"docker run rokita"
],
"show-dock":"docker ps | grep rokita"
}
}

0 comments on commit f1fbf00

Please sign in to comment.