successful docker build of strapi
This commit is contained in:
parent
ca2567e722
commit
a392c0c66d
2
Tiltfile
2
Tiltfile
|
@ -11,7 +11,7 @@ docker_build(
|
|||
'fp/strapi',
|
||||
'.',
|
||||
dockerfile='strapi.dockerfile',
|
||||
target='dev',
|
||||
target='release',
|
||||
live_update=[
|
||||
sync('./packages/strapi', '/app')
|
||||
]
|
||||
|
|
|
@ -0,0 +1,25 @@
|
|||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: external-dns
|
||||
spec:
|
||||
strategy:
|
||||
type: Recreate
|
||||
selector:
|
||||
matchLabels:
|
||||
app: external-dns
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: external-dns
|
||||
spec:
|
||||
containers:
|
||||
- name: external-dns
|
||||
image: registry.k8s.io/external-dns/external-dns:v0.14.1
|
||||
args:
|
||||
- --source=service # ingress is also possible
|
||||
- --domain-filter=example.com # (optional) limit to only example.com domains; change to match the zone created above.
|
||||
- --provider=vultr
|
||||
env:
|
||||
- name: VULTR_API_KEY
|
||||
value: "VULTR_API_KEY"
|
|
@ -7,12 +7,22 @@ RUN apk update && apk add --no-cache build-base gcc autoconf automake zlib-dev l
|
|||
|
||||
FROM base AS install
|
||||
COPY ./packages/strapi/pnpm-lock.yaml ./packages/strapi/package.json ./
|
||||
RUN pnpm install
|
||||
RUN pnpm install --prod --shamefully-hoist && pnpm run build
|
||||
COPY ./packages/strapi .
|
||||
RUN pnpm run build
|
||||
RUN chown -R node:node /app
|
||||
USER node
|
||||
|
||||
|
||||
# FROM base AS install
|
||||
# COPY ./packages/strapi/pnpm-lock.yaml ./
|
||||
# RUN pnpm fetch --prod
|
||||
# COPY ./packages/strapi .
|
||||
# RUN pnpm i --offline --prod --shamefully-hoist && pnpm run build
|
||||
# RUN chown -R node:node /app
|
||||
# USER node
|
||||
|
||||
|
||||
|
||||
FROM install AS dev
|
||||
ENV NODE_ENV=development
|
||||
ENTRYPOINT ["pnpm"]
|
||||
|
|
Loading…
Reference in New Issue