Skip to content

Commit

Permalink
See if --platform is necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
imnasnainaec committed Oct 25, 2024
1 parent fddf9bb commit d905beb
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy_qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: "Deploy Update to QA Server"

on:
push:
branches: [master]
branches: [arm, master]

permissions:
contents: read
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/maintenance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ jobs:
disable-sudo: true
egress-policy: block
allowed-endpoints: >
auth.docker.io:443
archive.ubuntu.com:80
auth.docker.io:443
files.pythonhosted.org:443
github.com:443
production.cloudflare.docker.com:443
Expand Down
4 changes: 2 additions & 2 deletions Backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
############################################################

# Docker multi-stage build
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0.402-jammy AS builder
FROM mcr.microsoft.com/dotnet/sdk:8.0.402-jammy AS builder
WORKDIR /app

# Copy csproj and restore (fetch dependencies) as distinct layers.
Expand All @@ -19,7 +19,7 @@ COPY . ./
RUN dotnet publish -c Release -o build

# Build runtime image.
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/aspnet:8.0.8-jammy
FROM mcr.microsoft.com/dotnet/aspnet:8.0.8-jammy

ENV ASPNETCORE_URLS=http://+:5000
ENV COMBINE_IS_IN_CONTAINER=1
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
############################################################

# User guide build environment
FROM --platform=$BUILDPLATFORM python:3.12.5-slim-bookworm AS user_guide_builder
FROM python:3.12.5-slim-bookworm AS user_guide_builder

ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
Expand All @@ -24,7 +24,7 @@ COPY docs/user_guide docs/user_guide
RUN tox -e user-guide

# Frontend build environment.
FROM --platform=$BUILDPLATFORM node:20.17.0-bookworm-slim AS frontend_builder
FROM node:20.17.0-bookworm-slim AS frontend_builder
WORKDIR /app

# Install app dependencies.
Expand All @@ -36,7 +36,7 @@ COPY . ./
RUN npm run build

# Production environment.
FROM --platform=$BUILDPLATFORM nginx:1.27
FROM nginx:1.27

WORKDIR /app

Expand Down
2 changes: 1 addition & 1 deletion database/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# - Intel/AMD 64-bit
# - ARM 64-bit
############################################################
FROM --platform=$BUILDPLATFORM mongo:7.0.14-jammy
FROM mongo:7.0.14-jammy

WORKDIR /

Expand Down
2 changes: 1 addition & 1 deletion maintenance/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# - ARM 64-bit
############################################################

FROM --platform=$BUILDPLATFORM sillsdev/aws-kubectl:0.3.0
FROM sillsdev/aws-kubectl:0.3.0

USER root

Expand Down

0 comments on commit d905beb

Please sign in to comment.