optimize Dockerfile logic

pull/459/head
Michael Li 1 year ago
parent ec931c6183
commit e40a2fdd7a
No known key found for this signature in database

@ -1,4 +1,4 @@
# syntax=docker/dockerfile:experimental
# syntax=docker/dockerfile:1
# build frontend
FROM node:19-alpine as frontend

@ -1,4 +1,4 @@
# syntax=docker/dockerfile:experimental
# syntax=docker/dockerfile:1
# build frontend
FROM node:19-alpine as frontend

@ -1,3 +1,4 @@
# syntax=docker/dockerfile:1
FROM getmeili/meilisearch:v1.5 as meilisearch
FROM redis:7.2-alpine

@ -1,3 +1,4 @@
# syntax=docker/dockerfile:1
FROM golang:1.21-alpine
RUN apk --no-cache --no-progress add --virtual \
build-deps \

@ -1,3 +1,4 @@
FROM alpine:3.18
# syntax=docker/dockerfile:1
FROM alpine:3.19
ENV TZ=Asia/Shanghai
RUN apk update && apk add --no-cache ca-certificates && update-ca-certificates

@ -1,7 +1,7 @@
### Dockerfile builer pre-build images
```sh
docker build -t bitbus/paopao-ce-backend-builder:latest -f Dockerfile.backend-builder .
docker build -t bitbus/paopao-ce-backend-runner:latest -f Dockerfile.backend-runner .
docker build -t bitbus/paopao-ce-allinone-runner:latest -f scripts/docker/Dockerfile.allinone-runner .
docker buildx build -t bitbus/paopao-ce-backend-builder:latest -f Dockerfile.backend-builder .
docker buildx build -t bitbus/paopao-ce-backend-runner:latest -f Dockerfile.backend-runner .
cd ../../ && docker buildx build -t bitbus/paopao-ce-allinone-runner:latest -f scripts/docker/Dockerfile.allinone-runner .
```
Loading…
Cancel
Save