mirror of
https://forgejo.merr.is/annika/isl-vue3.git
synced 2025-12-11 12:26:36 -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
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