Skip to content

Update Dockerfile to include TypeScript config#1339

Merged
Azgaar merged 2 commits intoAzgaar:masterfrom
TargetCrafter:patch-1
Mar 2, 2026
Merged

Update Dockerfile to include TypeScript config#1339
Azgaar merged 2 commits intoAzgaar:masterfrom
TargetCrafter:patch-1

Conversation

@TargetCrafter
Copy link
Contributor

Added TypeScript configuration and updated Vite config file.

Description

I wanted to run the app as a docker container, and i noticed that the existing Dockerfile didn't work correctly anymore. After some troubleshooting i got it working, and that is this PR.

I have published the container as targetcrafter/fantasy-map-generator on Dockerhub so that anyone can run it, but am willing to take this down if an official version is published. This can be achieved quite easily using Github actions.

Type of change

  • Bug fix
  • New feature
  • Refactoring / style
  • Documentation update / chore
  • Other (please describe)

Versioning

I have not updated as changing the Dockerfile doesn't affect the application in any way, it only makes sure the current version can be built into a docker image.

  • Version is updated
  • Changed files hash is updated

Added TypeScript configuration and updated Vite config file.
@netlify
Copy link

netlify bot commented Mar 2, 2026

Deploy Preview for afmg ready!

Name Link
🔨 Latest commit 89398d9
🔍 Latest deploy log https://app.netlify.com/projects/afmg/deploys/69a5f3565bb1e80008bd462f
😎 Deploy Preview https://deploy-preview-1339--afmg.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Docker build to successfully run the current Vite + TypeScript build pipeline when containerizing the app.

Changes:

  • Copy tsconfig.json into the Docker build context so tsc can run during npm run build.
  • Update Docker build to use vite.config.ts (instead of vite.config.js).
  • Set NETLIFY=true during the Docker build so the Vite base resolves to / for container hosting.

@TargetCrafter TargetCrafter marked this pull request as draft March 2, 2026 20:27
@TargetCrafter TargetCrafter marked this pull request as ready for review March 2, 2026 20:30
@TargetCrafter TargetCrafter marked this pull request as draft March 2, 2026 20:30
@Azgaar Azgaar marked this pull request as ready for review March 2, 2026 20:31
@Azgaar Azgaar merged commit badaf71 into Azgaar:master Mar 2, 2026
7 checks passed
@TargetCrafter TargetCrafter deleted the patch-1 branch March 2, 2026 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants