mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
refactor: 🚨 Pin all package versions in Docker images
This commit is contained in:
parent
360ec4817c
commit
48ffe97849
|
|
@ -1,7 +1,7 @@
|
||||||
# Bun doesn't run well on Musl but this seems to work
|
# Bun doesn't run well on Musl but this seems to work
|
||||||
FROM oven/bun:1.1.29-alpine as base
|
FROM oven/bun:1.1.29-alpine as base
|
||||||
|
|
||||||
RUN apk add --no-cache libstdc++ git bash curl openssh cloc
|
RUN apk add --no-cache libstdc++ git=^2.0.0 bash^5.0.0 curl^8.0.0 openssh^9.7.0 cloc^2.0.0
|
||||||
|
|
||||||
# Switch to Bash by editing /etc/passwd
|
# Switch to Bash by editing /etc/passwd
|
||||||
RUN sed -i -e 's|/bin/ash|/bin/bash|g' /etc/passwd
|
RUN sed -i -e 's|/bin/ash|/bin/bash|g' /etc/passwd
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
# Node is required for building the project
|
# Node is required for building the project
|
||||||
FROM imbios/bun-node:1-20-alpine AS base
|
FROM imbios/bun-node:1-20-alpine AS base
|
||||||
|
|
||||||
RUN apk add --no-cache libstdc++
|
RUN apk add --no-cache libstdc++^14.0.0
|
||||||
|
|
||||||
# Install dependencies into temp directory
|
# Install dependencies into temp directory
|
||||||
# This will cache them and speed up future builds
|
# This will cache them and speed up future builds
|
||||||
|
|
@ -28,7 +28,7 @@ WORKDIR /temp/dist
|
||||||
# Copy production dependencies and source code into final image
|
# Copy production dependencies and source code into final image
|
||||||
FROM oven/bun:1.1.29-alpine
|
FROM oven/bun:1.1.29-alpine
|
||||||
|
|
||||||
RUN apk add --no-cache libstdc++
|
RUN apk add --no-cache libstdc++^14.0.0
|
||||||
|
|
||||||
# Create app directory
|
# Create app directory
|
||||||
RUN mkdir -p /app
|
RUN mkdir -p /app
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue