Skip to content

Commit

Permalink
Set target
Browse files Browse the repository at this point in the history
  • Loading branch information
xepozz committed Sep 1, 2024
1 parent e226353 commit c6ad902
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
with:
push: true
context: .
target: target
file: ./Dockerfile
cache-from: type=gha
cache-to: type=gha,mode=max
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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/*
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit c6ad902

Please sign in to comment.