mirror of
https://forgejo.merr.is/annika/isl-vue3.git
synced 2025-12-11 10:56:31 -05:00
Adjusted Dockerfile To Support Building In Docker
This commit is contained in:
parent
905ef95d55
commit
d13d93b676
2 changed files with 12 additions and 4 deletions
|
|
@ -65,7 +65,7 @@ jobs:
|
|||
with:
|
||||
shell_command: /bin/ash -c
|
||||
image: ${{ fromJSON(steps.meta.outputs.json).tags[0] }}
|
||||
path: isl-api
|
||||
path: /dist
|
||||
destination: dist
|
||||
- name: Create a Release
|
||||
uses: https://forgejo.merr.is/actions/forgejo-release@alpinev1
|
||||
|
|
|
|||
14
Dockerfile
14
Dockerfile
|
|
@ -1,3 +1,11 @@
|
|||
FROM nginx:stable-alpine
|
||||
COPY docker/nginx.conf /etc/nginx/nginx.conf
|
||||
COPY ./dist /usr/share/nginx/html
|
||||
FROM oven/bun:1-alpine as build-stage
|
||||
|
||||
WORKDIR /app
|
||||
COPY . /app
|
||||
RUN bun install
|
||||
RUN bun run build
|
||||
|
||||
FROM nginx:stable-alpine as release
|
||||
|
||||
COPY --from=build-stage /app/docker/nginx.conf /etc/nginx/nginx.conf
|
||||
COPY --from=build-stage /app/dist /usr/share/nginx/html
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue