Skip to content

Commit 3687a0d

Browse files
committed
change instance type and docker build errors
1 parent e3ac200 commit 3687a0d

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

apps/api/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:18-alpine AS base
1+
FROM node:20-alpine AS base
22
LABEL org.opencontainers.image.source https://github.com/dump-hr/internship-app
33

44
FROM base AS builder

apps/code-runner/Dockerfile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:18-alpine AS base
1+
FROM node:20-alpine AS base
22
LABEL org.opencontainers.image.source https://github.com/dump-hr/internship-app
33

44
FROM base AS builder
@@ -36,8 +36,12 @@ RUN apk add --no-cache \
3636
openjdk17 \
3737
go \
3838
musl-dev
39-
RUN apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing/ \
40-
dotnet6-sdk
39+
RUN wget https://packages.microsoft.com/config/alpine/3.18/packages-microsoft-prod.apk \
40+
-O packages-microsoft-prod.apk && \
41+
apk add --no-cache packages-microsoft-prod.apk && \
42+
apk update && \
43+
apk add --no-cache dotnet6-sdk
44+
4145

4246
# Don't run production as root
4347
RUN addgroup --system --gid 1001 nestjs

infrastructure/terraform/live/production/compute/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ module "web" {
4848
source = "../../../modules/ec2"
4949

5050
name_prefix = "internship-app-production"
51-
instance_type = "t3a.small"
51+
instance_type = "t3a.nano"
5252
instance_count = 1
5353
instance_root_device_size = 20
5454
subnets = data.aws_subnets.public_subnets.ids

0 commit comments

Comments
 (0)