Fix FromAsCasing

This commit is contained in:
Ivan 2024-07-19 19:40:39 +03:00
parent 19af3ff07a
commit 80e0849eaf
3 changed files with 7 additions and 7 deletions

View File

@ -1,7 +1,7 @@
# ========================================== # ==========================================
# ============ Multi-stage build =========== # ============ Multi-stage build ===========
# ========================================== # ==========================================
FROM ubuntu:jammy as python-base FROM ubuntu:jammy AS python-base
ENV DEBIAN_FRONTEND=noninteractive ENV DEBIAN_FRONTEND=noninteractive
@ -25,7 +25,7 @@ RUN apt-get update -qq && \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*
# ========= Builder ============== # ========= Builder ==============
FROM python-base as builder FROM python-base AS builder
# Set env variables # Set env variables
ENV PYTHONDONTWRITEBYTECODE 1 ENV PYTHONDONTWRITEBYTECODE 1

View File

@ -1,12 +1,12 @@
# ======== Multi-stage base ========== # ======== Multi-stage base ==========
FROM node:bullseye-slim as node-base FROM node:bullseye-slim AS node-base
RUN apt-get update -qq && \ RUN apt-get update -qq && \
apt-get upgrade -y && \ apt-get upgrade -y && \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*
# ======= Build ======= # ======= Build =======
ARG BUILD_TYPE=production ARG BUILD_TYPE=production
FROM node-base as builder FROM node-base AS builder
WORKDIR /result WORKDIR /result
@ -18,7 +18,7 @@ ENV NODE_ENV production
RUN npm run build RUN npm run build
# ========= Server ======= # ========= Server =======
FROM node-base as product-server FROM node-base AS product-server
ENV NODE_ENV production ENV NODE_ENV production

View File

@ -1,11 +1,11 @@
# ======== Multi-stage base ========== # ======== Multi-stage base ==========
FROM node:bullseye-slim as node-base FROM node:bullseye-slim AS node-base
RUN apt-get update -qq && \ RUN apt-get update -qq && \
apt-get upgrade -y && \ apt-get upgrade -y && \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*
# ========= Server ======= # ========= Server =======
FROM node-base as product-server FROM node-base AS product-server
ARG BUILD_TYPE=production ARG BUILD_TYPE=production
WORKDIR /home WORKDIR /home