Skip to content

Commit

Permalink
Update Dockerfile to build cc65 and populate CC65_SOURCE_DIR with bui…
Browse files Browse the repository at this point in the history
…ld tree
  • Loading branch information
nate-yocom committed Feb 2, 2024
1 parent cd12188 commit 358b55b
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .devcontainer/Dockerfile
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

0 comments on commit 358b55b

Please sign in to comment.