Skip to content

Commit

Permalink
feat: standardize alpine versions and pin pnpm and upx versions
Browse files Browse the repository at this point in the history
  • Loading branch information
TwistTheNeil committed Oct 28, 2023
1 parent 108abaf commit 518afdc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# Build spa
FROM node:18.18.2-alpine3.18 AS spa-builder
WORKDIR /app
RUN npm install -g pnpm
RUN npm install -g pnpm@8.10.0
COPY frontend /app
RUN rm -rf /app/node_modules
RUN pnpm install --frozen-lockfile
RUN npx vite build --outDir /app/dist

# Build app
FROM golang:1.21.3-alpine3.17 AS builder
RUN apk add upx
FROM golang:1.21.3-alpine3.18 AS builder
RUN apk add --no-cache upx=4.0.2-r0
WORKDIR /app
COPY go.mod .
COPY go.sum .
Expand Down

0 comments on commit 518afdc

Please sign in to comment.