Skip to content

Commit

Permalink
Déplacement des fichiers docker, création d'un dossier dédié, et amél…
Browse files Browse the repository at this point in the history
…ioration de la logique
  • Loading branch information
yannicka committed Jan 6, 2022
1 parent 08afdd7 commit db2758a
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 11 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/node_modules/
/public/
11 changes: 0 additions & 11 deletions Dockerfile

This file was deleted.

15 changes: 15 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM httpd:2-alpine

WORKDIR /var/yannicka

COPY . .

RUN apk add --update nodejs npm

RUN npm install && npm run build && rm node_modules -r && mv public/* /usr/local/apache2/htdocs/

RUN apk del nodejs npm

EXPOSE 80

CMD [ "httpd-foreground" ]
5 changes: 5 additions & 0 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
services:
httpd:
build: .
ports:
- "8080:80"

0 comments on commit db2758a

Please sign in to comment.