Skip to content

Commit

Permalink
build: follow Dockerfile conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
azzamsa committed Aug 20, 2024
1 parent da39496 commit e171d2d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM node:18-alpine3.18 as web
FROM node:18-alpine3.18 AS web
WORKDIR /usr/src/paisa
COPY package.json package-lock.json* ./
RUN npm install
COPY . .
RUN npm run build

FROM golang:1.21-alpine3.18 as go
FROM golang:1.21-alpine3.18 AS go
WORKDIR /usr/src/paisa
RUN apk --no-cache add sqlite gcc g++
COPY go.mod go.sum ./
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.demo
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM node:18-alpine3.18 as web
FROM node:18-alpine3.18 AS web
WORKDIR /usr/src/paisa
COPY package.json package-lock.json* ./
RUN npm install
COPY . .
RUN npm run build

FROM golang:1.21-alpine3.18 as go
FROM golang:1.21-alpine3.18 AS go
WORKDIR /usr/src/paisa
RUN apk --no-cache add sqlite gcc g++
COPY go.mod go.sum ./
Expand Down

0 comments on commit e171d2d

Please sign in to comment.