-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Dockerfile to build cc65 and populate CC65_SOURCE_DIR with bui…
…ld tree
- Loading branch information
1 parent
cd12188
commit 358b55b
Showing
1 changed file
with
13 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,16 @@ | ||
FROM mcr.microsoft.com/devcontainers/rust:1-1-bullseye | ||
|
||
ENV BUILD_DIR="/tmp" | ||
ENV CC65_VERSION="V2.19" | ||
ENV BUILD_DIR="/cc65-src" | ||
ENV CC65_VERSION="2.19" | ||
ENV CC65_DOWNLOAD_VERSION="V2.19" | ||
ENV PREFIX="/usr/local" | ||
ENV CC65_SOURCE_DIR="${BUILD_DIR}/cc65-${CC65_VERSION}" | ||
|
||
RUN apt-get update && apt-get install build-essential cc65 -y | ||
RUN apt-get update && apt-get install build-essential -y && \ | ||
mkdir -p ${BUILD_DIR} && \ | ||
cd ${BUILD_DIR} && \ | ||
wget https://github.com/cc65/cc65/archive/${CC65_DOWNLOAD_VERSION}.tar.gz && \ | ||
tar xzf ${CC65_DOWNLOAD_VERSION}.tar.gz && \ | ||
cd cc65* && \ | ||
make && \ | ||
make install |