Adjusted Dockerfile To Support Building In Docker

This commit is contained in:
Annika Merris 2024-02-04 17:54:51 -05:00
parent 905ef95d55
commit d13d93b676
2 changed files with 12 additions and 4 deletions

View file

@ -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

View file

@ -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