Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: Manage Dockerfile with Dofigen #1014

Merged
merged 4 commits into from
Sep 30, 2024

Conversation

taorepoara
Copy link
Contributor

@taorepoara taorepoara commented Sep 23, 2024

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation

Description

Generate the server Dockerfile with Dofigen in order to optimize the resulting image size and the build time.

A picture tells a thousand words (if any)

Before this PR

{Please add a screenshot here}

After this PR

{Please add a screenshot here}

Related Issue (optional)

#1012

Copy link

vercel bot commented Sep 23, 2024

@taorepoara is attempting to deploy a commit to the OpenStatus Team on Vercel.

A member of the Team first needs to authorize it.

# Temp solution for bun
RUN bun install --ignore-scripts
# install
FROM oven/bun@sha256:eb409bed239c3adff079a6b71283f151e802d66b99f643ba7a71e1be7d3da513 AS install
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@taorepoara do we really need the hash?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The hash gives you the control on the FROM images. Dofigen does it by default, but I'll add a flag to avoid that: lenra-io/dofigen#278

workdir: /app/
# Copy project
bind:
- package.json
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I m ashamed by that part our monorepo is 😱

Copy link

vercel bot commented Sep 25, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
openstatus-web ❌ Failed (Inspect) Sep 25, 2024 5:02pm

@taorepoara taorepoara marked this pull request as ready for review September 27, 2024 08:52
@taorepoara
Copy link
Contributor Author

@thibaultleouay Let me know if there is things to change

@thibaultleouay thibaultleouay merged commit e829fa0 into openstatusHQ:main Sep 30, 2024
3 of 4 checks passed
@taorepoara taorepoara deleted the dofigen branch October 1, 2024 07:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants