Trying Without bunx --bun Using bun Instead

This commit is contained in:
Annika Merris 2024-02-04 20:48:33 -05:00
parent 9282992cfa
commit d89428bcb7

View file

@ -3,7 +3,7 @@
# use the official Bun image # use the official Bun image
# see all versions at https://hub.docker.com/r/oven/bun/tags # see all versions at https://hub.docker.com/r/oven/bun/tags
FROM oven/bun:1-alpine as base FROM oven/bun:1.0.26-alpine as base
WORKDIR /app WORKDIR /app
# install dependencies into temp directory # install dependencies into temp directory
@ -23,7 +23,7 @@ COPY . .
# I don't have any tests, I am bad. # I don't have any tests, I am bad.
ENV NODE_ENV=production ENV NODE_ENV=production
RUN bun --version RUN bun --version
RUN bunx --bun vite build RUN bun vite build
# Copy the distribution folder into the final image. # Copy the distribution folder into the final image.
FROM nginx:stable-alpine as release FROM nginx:stable-alpine as release