From c6ad902eee099e26f1157ebfc186544db7277485 Mon Sep 17 00:00:00 2001 From: Dmitrii Derepko Date: Sun, 1 Sep 2024 12:30:51 +0300 Subject: [PATCH] Set target --- .github/workflows/container.yml | 1 + Dockerfile | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/container.yml b/.github/workflows/container.yml index 6e1cc06..1f3e203 100644 --- a/.github/workflows/container.yml +++ b/.github/workflows/container.yml @@ -33,6 +33,7 @@ jobs: with: push: true context: . + target: target file: ./Dockerfile cache-from: type=gha cache-to: type=gha,mode=max diff --git a/Dockerfile b/Dockerfile index f743f0a..6c22062 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:21.7-alpine as build +FROM node:21.7-alpine AS build RUN apk add --update --no-cache git nano curl python3 py3-setuptools make g++\ && rm -rf /var/cache/apk/* @@ -26,7 +26,7 @@ ENV VITE_BUILD_ID=$VITE_BUILD_ID RUN npm run build:dev -FROM nginx:alpine +FROM nginx:alpine AS target LABEL org.opencontainers.image.source=https://github.com/yiisoft/yii-dev-panel LABEL org.opencontainers.image.description="Yii Dev Panel"