Skip to content

Commit

Permalink
feat(docker): switch node base image, remove gcompat, cleanup deps
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronlifton committed Jun 17, 2024
1 parent f8038a9 commit c672532
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 14 deletions.
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
# syntax = docker/dockerfile:1.2

FROM node:21.6.1-alpine AS runtime
FROM node:bookworm AS runtime
WORKDIR /app

ARG TURSO_DB_URL
ARG TURSO_DB_AUTH_TOKEN

COPY . .

SHELL ["/bin/ash", "-o", "pipefail", "-c"]
RUN apk --no-cache add gcompat
RUN --mount=type=secret,id=env,dst=/etc/secrets/.env \
ASTRO_STUDIO_APP_TOKEN=$(grep ASTRO_STUDIO_APP_TOKEN /etc/secrets/.env | cut -d '=' -f 2) \
export RENDER_TOKEN && export ASTRO_STUDIO_APP_TOKEN \
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
"@fontsource/comic-mono": "^5.0.7",
"@fontsource/source-sans-pro": "^5.0.8",
"@libsql/client": "^0.4.3",
"@libsql/linux-x64-musl": "0.4.0-pre.4",
"@nanostores/react": "^0.7.2",
"@octokit/graphql": "^8.0.1",
"@octokit/plugin-rest-endpoint-methods": "^13.2.1",
Expand Down
10 changes: 0 additions & 10 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c672532

Please sign in to comment.