docker mac - done
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
FROM node:18.20.4-alpine3.20 as builder
|
||||
FROM node:18.20.4-alpine3.20 AS builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
@ -13,7 +13,7 @@ RUN pnpm build
|
||||
###############################################
|
||||
# Base Image - Python
|
||||
###############################################
|
||||
FROM python:3.10-slim as python-base
|
||||
FROM python:3.10-slim AS python-base
|
||||
|
||||
ENV FUWARE_HOME="/app"
|
||||
|
||||
@ -39,7 +39,7 @@ RUN useradd -u 911 -U -d $FUWARE_HOME -s /bin/bash abc \
|
||||
###############################################
|
||||
# Builder Image
|
||||
###############################################
|
||||
FROM python-base as builder-base
|
||||
FROM python-base AS builder-base
|
||||
RUN apt-get update \
|
||||
&& apt-get install --no-install-recommends -y \
|
||||
curl \
|
||||
@ -66,7 +66,7 @@ RUN poetry install --only main
|
||||
###############################################
|
||||
# Production Image
|
||||
###############################################
|
||||
FROM python-base as production
|
||||
FROM python-base AS production
|
||||
ENV PRODUCTION=true
|
||||
ENV TESTING=false
|
||||
|
||||
@ -106,8 +106,6 @@ ENV APP_PORT=9000
|
||||
|
||||
EXPOSE ${APP_PORT}
|
||||
|
||||
HEALTHCHECK CMD python $FUWARE_HOME/backend/scripts/healthcheck.py || exit 1
|
||||
|
||||
# ----------------------------------
|
||||
# Copy Frontend
|
||||
|
||||
|
Reference in New Issue
Block a user