diff --git a/angular/Dockerfile b/angular/Dockerfile index 144209b..f243a27 100644 --- a/angular/Dockerfile +++ b/angular/Dockerfile @@ -1,4 +1,4 @@ -FROM node:lts as development +FROM node:lts AS development WORKDIR /app @@ -12,7 +12,7 @@ ENV PORT=3000 CMD [ "npm", "start" ] -FROM development as builder +FROM development AS builder RUN npm run build diff --git a/nestjs/Dockerfile b/nestjs/Dockerfile index ae65e31..3e5f326 100644 --- a/nestjs/Dockerfile +++ b/nestjs/Dockerfile @@ -1,4 +1,4 @@ -FROM node:lts as builder +FROM node:lts AS builder # Create app directory WORKDIR /usr/src/app diff --git a/next/Dockerfile b/next/Dockerfile index 69ecf44..a52c473 100644 --- a/next/Dockerfile +++ b/next/Dockerfile @@ -1,4 +1,4 @@ -FROM node:lts as builder +FROM node:lts AS builder WORKDIR /app diff --git a/python/fastapi/fastapi-poetry/Dockerfile b/python/fastapi/fastapi-poetry/Dockerfile index 0ea3da4..c3d8bc3 100644 --- a/python/fastapi/fastapi-poetry/Dockerfile +++ b/python/fastapi/fastapi-poetry/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.10 as requirements-builder +FROM python:3.10 AS requirements-builder ENV POETRY_HOME="/opt/poetry" ENV POETRY_VERSION=1.6.1 diff --git a/react/Dockerfile b/react/Dockerfile index 7333d48..23d3669 100644 --- a/react/Dockerfile +++ b/react/Dockerfile @@ -1,4 +1,4 @@ -FROM node:lts as development +FROM node:lts AS development WORKDIR /app @@ -12,7 +12,7 @@ ENV PORT=3000 CMD [ "npm", "start" ] -FROM development as builder +FROM development AS builder RUN npm run build diff --git a/vue/Dockerfile b/vue/Dockerfile index 7333d48..23d3669 100644 --- a/vue/Dockerfile +++ b/vue/Dockerfile @@ -1,4 +1,4 @@ -FROM node:lts as development +FROM node:lts AS development WORKDIR /app @@ -12,7 +12,7 @@ ENV PORT=3000 CMD [ "npm", "start" ] -FROM development as builder +FROM development AS builder RUN npm run build