mirror of
https://github.com/C4illin/ConvertX.git
synced 2025-11-02 21:13:38 +00:00
chore: fix tailwind v4 docker
This commit is contained in:
@@ -1,20 +1,19 @@
|
|||||||
.dockerignore
|
.dockerignore
|
||||||
.editorconfig
|
.editorconfig
|
||||||
.env
|
.env
|
||||||
.git
|
.git
|
||||||
.gitignore
|
.idea
|
||||||
.idea
|
.vscode
|
||||||
.vscode
|
CHANGELOG.md
|
||||||
CHANGELOG.md
|
coverage*
|
||||||
coverage*
|
data
|
||||||
data
|
docker-compose*
|
||||||
docker-compose*
|
Dockerfile*
|
||||||
Dockerfile*
|
eslint.config.js
|
||||||
eslint.config.js
|
helm-charts
|
||||||
helm-charts
|
LICENSE
|
||||||
LICENSE
|
Makefile
|
||||||
Makefile
|
node_modules
|
||||||
node_modules
|
prettier.config.js
|
||||||
prettier.config.js
|
README.md
|
||||||
README.md
|
|
||||||
renovate.json
|
renovate.json
|
||||||
12
Dockerfile
12
Dockerfile
@@ -6,12 +6,12 @@ WORKDIR /app
|
|||||||
# this will cache them and speed up future builds
|
# this will cache them and speed up future builds
|
||||||
FROM base AS install
|
FROM base AS install
|
||||||
RUN mkdir -p /temp/dev
|
RUN mkdir -p /temp/dev
|
||||||
COPY package.json bun.lockb /temp/dev/
|
COPY package.json bun.lock /temp/dev/
|
||||||
RUN cd /temp/dev && bun install --frozen-lockfile
|
RUN cd /temp/dev && bun install --frozen-lockfile
|
||||||
|
|
||||||
# install with --production (exclude devDependencies)
|
# install with --production (exclude devDependencies)
|
||||||
RUN mkdir -p /temp/prod
|
RUN mkdir -p /temp/prod
|
||||||
COPY package.json bun.lockb /temp/prod/
|
COPY package.json bun.lock /temp/prod/
|
||||||
RUN cd /temp/prod && bun install --frozen-lockfile --production
|
RUN cd /temp/prod && bun install --frozen-lockfile --production
|
||||||
|
|
||||||
FROM base AS builder
|
FROM base AS builder
|
||||||
@@ -22,13 +22,13 @@ RUN cargo install resvg
|
|||||||
|
|
||||||
# copy node_modules from temp directory
|
# copy node_modules from temp directory
|
||||||
# then copy all (non-ignored) project files into the image
|
# then copy all (non-ignored) project files into the image
|
||||||
FROM base AS prerelease
|
# will switch to alpine again when it works
|
||||||
|
FROM oven/bun:1.2.2-slim AS prerelease
|
||||||
|
WORKDIR /app
|
||||||
COPY --from=install /temp/dev/node_modules node_modules
|
COPY --from=install /temp/dev/node_modules node_modules
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# # [optional] tests & build
|
# ENV NODE_ENV=production
|
||||||
ENV NODE_ENV=production
|
|
||||||
# RUN bun test
|
|
||||||
RUN bun run build
|
RUN bun run build
|
||||||
|
|
||||||
# copy production dependencies and source code into final image
|
# copy production dependencies and source code into final image
|
||||||
|
|||||||
Reference in New Issue
Block a user