Skip to content

Commit

Permalink
fix FromAs casing; add missing npm module
Browse files Browse the repository at this point in the history
Signed-off-by: Pranay Valson <[email protected]>
  • Loading branch information
noslav committed Aug 13, 2024
1 parent 96bac7e commit e3474d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build - first phase
FROM golang:1.22-alpine as builder
FROM golang:1.22-alpine AS builder
RUN mkdir /build
WORKDIR /build
COPY . .
Expand All @@ -9,7 +9,7 @@ RUN go mod download && CGO_ENABLED=0 GOOS=linux go build -a -ldflags="-s -w" -o
FROM alpine:3.20
RUN mkdir /app
WORKDIR /app
RUN apk update && apk add --no-cache bash nodejs npm git && npm install -g @web3-storage/[email protected]
RUN apk update && apk add --no-cache bash nodejs npm git && npm install -g @web3-storage/[email protected] && npm install -g crypto-random-string
COPY --from=builder --chmod=700 /build/ipfs-server /app

RUN apk del git && rm -rf /var/cache/apk/* /root/.npm /tmp/*
Expand Down

0 comments on commit e3474d4

Please sign in to comment.