mirror of
https://github.com/YunoHost/yunohost-portal.git
synced 2024-09-03 20:06:23 +02:00
Add Dockerfile + docker-compose.yml to ease up development ?
This commit is contained in:
parent
0628a09749
commit
b2911f79b9
3 changed files with 8395 additions and 0 deletions
12
Dockerfile
Normal file
12
Dockerfile
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
FROM node:18.17.0-bookworm-slim
|
||||||
|
|
||||||
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
|
ENV TZ="Europe/Paris"
|
||||||
|
ENV LC_ALL fr_FR.UTF-8
|
||||||
|
|
||||||
|
WORKDIR /portal
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
RUN yarn install
|
||||||
|
|
||||||
|
RUN mkdir -p /portal/.nuxt
|
14
docker-compose.yml
Normal file
14
docker-compose.yml
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
services:
|
||||||
|
|
||||||
|
portal:
|
||||||
|
build: .
|
||||||
|
ports:
|
||||||
|
- 127.0.0.1:3000:3000
|
||||||
|
- 127.0.0.1:24678:24678
|
||||||
|
volumes:
|
||||||
|
- .:/portal
|
||||||
|
- node_modules:/portal/node_modules
|
||||||
|
command: yarn dev
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
node_modules:
|
Loading…
Reference in a new issue