create-docker #6
34
.dockerignore
Normal file
34
.dockerignore
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
.git
|
||||||
|
.github
|
||||||
|
.dockerignore
|
||||||
|
.gitattributes
|
||||||
|
.gitignore
|
||||||
|
.idea
|
||||||
|
.vscode
|
||||||
|
|
||||||
|
__pycache__/
|
||||||
|
*.py[cod]
|
||||||
|
*$py.class
|
||||||
|
*.so
|
||||||
|
htmlcov/
|
||||||
|
.coverage
|
||||||
|
.coverage.*
|
||||||
|
.pylintrc
|
||||||
|
.pytest_cache/
|
||||||
|
.venv
|
||||||
|
venv
|
||||||
|
|
||||||
|
.DS_Store
|
||||||
|
.AppleDouble
|
||||||
|
.LSOverride
|
||||||
|
._*
|
||||||
|
|
||||||
|
*/node_modules
|
||||||
|
*/dist
|
||||||
|
*/data/db
|
||||||
|
*/mealie/test
|
||||||
|
*/mealie/.temp
|
||||||
|
|
||||||
|
model.crfmodel
|
||||||
|
|
||||||
|
crowdin.yml
|
@ -39,7 +39,7 @@
|
|||||||
"class": "logging.handlers.RotatingFileHandler",
|
"class": "logging.handlers.RotatingFileHandler",
|
||||||
"level": "DEBUG",
|
"level": "DEBUG",
|
||||||
"formatter": "detailed",
|
"formatter": "detailed",
|
||||||
"filename": "${DATA_DIR}/fuware.log",
|
"filename": "data/fuware.log",
|
||||||
"maxBytes": 10000,
|
"maxBytes": 10000,
|
||||||
"backupCount": 3
|
"backupCount": 3
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
FROM node:18.20.4-alpine3.20 as builder
|
FROM node:18.20.4-alpine3.20 AS builder
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
@ -13,7 +13,7 @@ RUN pnpm build
|
|||||||
###############################################
|
###############################################
|
||||||
# Base Image - Python
|
# Base Image - Python
|
||||||
###############################################
|
###############################################
|
||||||
FROM python:3.10-slim as python-base
|
FROM python:3.10-slim AS python-base
|
||||||
|
|
||||||
ENV FUWARE_HOME="/app"
|
ENV FUWARE_HOME="/app"
|
||||||
|
|
||||||
@ -39,7 +39,7 @@ RUN useradd -u 911 -U -d $FUWARE_HOME -s /bin/bash abc \
|
|||||||
###############################################
|
###############################################
|
||||||
# Builder Image
|
# Builder Image
|
||||||
###############################################
|
###############################################
|
||||||
FROM python-base as builder-base
|
FROM python-base AS builder-base
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install --no-install-recommends -y \
|
&& apt-get install --no-install-recommends -y \
|
||||||
curl \
|
curl \
|
||||||
@ -66,7 +66,7 @@ RUN poetry install --only main
|
|||||||
###############################################
|
###############################################
|
||||||
# Production Image
|
# Production Image
|
||||||
###############################################
|
###############################################
|
||||||
FROM python-base as production
|
FROM python-base AS production
|
||||||
ENV PRODUCTION=true
|
ENV PRODUCTION=true
|
||||||
ENV TESTING=false
|
ENV TESTING=false
|
||||||
|
|
||||||
@ -106,8 +106,6 @@ ENV APP_PORT=9000
|
|||||||
|
|
||||||
EXPOSE ${APP_PORT}
|
EXPOSE ${APP_PORT}
|
||||||
|
|
||||||
HEALTHCHECK CMD python $FUWARE_HOME/backend/scripts/healthcheck.py || exit 1
|
|
||||||
|
|
||||||
# ----------------------------------
|
# ----------------------------------
|
||||||
# Copy Frontend
|
# Copy Frontend
|
||||||
|
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
services:
|
services:
|
||||||
mealie:
|
fuware:
|
||||||
container_name: mealie
|
container_name: fuware
|
||||||
image: mealie:dev
|
image: fuware:dev
|
||||||
build:
|
build:
|
||||||
context: ../
|
context: ../
|
||||||
target: production
|
target: production
|
||||||
dockerfile: ./docker/Dockerfile
|
dockerfile: ./docker/Dockerfile
|
||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- mealie-data:/app/data/
|
- fuware-data:/app/data/
|
||||||
ports:
|
ports:
|
||||||
- 9091:9000
|
- 9091:9000
|
||||||
environment:
|
environment:
|
||||||
@ -26,5 +26,5 @@ services:
|
|||||||
# SMTP_PASSWORD=
|
# SMTP_PASSWORD=
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
mealie-data:
|
fuware-data:
|
||||||
driver: local
|
driver: local
|
||||||
|
@ -41,4 +41,4 @@ init
|
|||||||
# Start API
|
# Start API
|
||||||
HOST_IP=`/sbin/ip route|awk '/default/ { print $3 }'`
|
HOST_IP=`/sbin/ip route|awk '/default/ { print $3 }'`
|
||||||
|
|
||||||
exec python /app/fuware/main.py
|
exec python /app/backend/main.py
|
||||||
|
Loading…
x
Reference in New Issue
Block a user