Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

Problem I’m using App Platform to serve a React (using Create React App) static website. I’m using Docker in order to have predictable and abstracted builds (as well as other reasons)
But whenever I try to deploy it to DO’s App Platform I get build errors essentially saying that it can’t find the output directory. Such as ‘client | 19:44:34 ! /app/build does not exist within the built container’
App.yaml
name: project_name
static_sites:
- name: client
dockerfile_path: ./client/Dockerfile
github:
repo: valencian-digital/unique-expressions
branch: master
source_dir: client
output_dir: /app/build
Dockerfile
FROM node:14-alpine
WORKDIR /app
VOLUME /app
ENV NODE_ENV=production
COPY . .
CMD ["npm", "run", "build"]
Question How can I get a Dockerfile to work property with App Platform static sites?
lwmeozrcbh
d1dd3d9538cc4d06b53e6d1d338d3f
50ff4e4b3c6c4999a12403b1ecda95
a6309a057c3f4cb38fb2e7feb67236
72e571841e7f4a6881090a2f3e93c0
7ce6bf277bff4d429ba493dd750e35
57a72a98162f46a5a5cd04d9b
Thomas Brocken
11575c6d695643cdb40ad47d0f1aea
tez.saad