Skip to content

Commit b1ffc9f

Browse files
committed
Add the missing srcdir and use bookworm for prod containers
1 parent eb1727b commit b1ffc9f

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

Makefile

+5-1
Original file line numberDiff line numberDiff line change
@@ -204,10 +204,12 @@ package_service: var-APP_PATH
204204
# Trim the potential "app.staging.yaml" suffix.
205205
if [[ "$(APP_PATH)" == "api/query/cache/service"* ]]; then \
206206
APP_PATH="api/query/cache/service"; \
207+
elif [[ "$(APP_PATH)" == "webapp/web"* ]]; then \
208+
APP_PATH="webapp/web"; \
207209
else \
208210
APP_PATH="$(APP_PATH)"; \
209211
fi ; \
210-
if [[ "$${APP_PATH}" == "api/query/cache/service" ]]; then \
212+
if [[ "$${APP_PATH}" == "api/query/cache/service" || "$${APP_PATH}" == "webapp/web" ]]; then \
211213
TMP_DIR=$$(mktemp -d); \
212214
rm -rf $(WPTD_PATH)$${APP_PATH}/wpt.fyi; \
213215
cp -r $(WPTD_PATH)* $${TMP_DIR}/; \
@@ -292,6 +294,7 @@ deploy_staging: deployment_state var-BRANCH_NAME
292294
util/deploy.sh -q -b $(BRANCH_NAME) $(APP_PATH); \
293295
fi
294296
rm -rf $(WPTD_PATH)api/query/cache/service/wpt.fyi
297+
rm -rf $(WPTD_PATH)webapp/web/wpt.fyi
295298

296299
cleanup_staging_versions: gcloud_login
297300
$(WPTD_PATH)/util/cleanup-versions.sh
@@ -300,6 +303,7 @@ deploy_production: deployment_state
300303
gcloud config set project wptdashboard
301304
util/deploy.sh -r $(APP_PATH)
302305
rm -rf $(WPTD_PATH)api/query/cache/service/wpt.fyi
306+
rm -rf $(WPTD_PATH)webapp/web/wpt.fyi
303307

304308
webapp_node_modules_all: node
305309
cd webapp; npm install

api/query/cache/service/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ COPY $LOCAL_SRC .
1212
RUN CGO_ENABLED=0 /usr/local/go/bin/go build -o ../../bin/app ./api/query/cache/service
1313

1414
# Application image.
15-
FROM gcr.io/distroless/static-debian11
15+
FROM gcr.io/distroless/static-debian12
1616

1717
COPY --from=builder /go/bin/app /usr/local/bin/app
1818

webapp/web/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ COPY $LOCAL_SRC .
1212
RUN make go_build
1313

1414
# Application image.
15-
FROM gcr.io/distroless/static-debian11
15+
FROM gcr.io/distroless/static-debian12
1616

17-
COPY --from=builder /go/src/wpt.fyi/webapp/web /usr/local/bin/app
17+
COPY --from=builder /go/src/wpt.fyi/web /usr/local/bin/app
1818

1919
CMD ["/usr/local/bin/app"]

0 commit comments

Comments
 (0)